diff --git a/IRC.Core.SCP/Service/CStoreSCPService.cs b/IRC.Core.SCP/Service/CStoreSCPService.cs index 1f2dae205..f13f63b78 100644 --- a/IRC.Core.SCP/Service/CStoreSCPService.cs +++ b/IRC.Core.SCP/Service/CStoreSCPService.cs @@ -171,8 +171,7 @@ namespace IRaCIS.Core.SCP.Service _upload.EndTime = DateTime.Now; _upload.StudyCount = _SCPStudyIdList.Count; - _upload.TrialId = _trialId; - _upload.TrialSiteId = _trialSiteId; + await _SCPImageUploadRepository.AddAsync(_upload, true); diff --git a/IRaCIS.Core.Domain/Allocation/VisitTask.cs b/IRaCIS.Core.Domain/Allocation/VisitTask.cs index 78e86e852..ccece8407 100644 --- a/IRaCIS.Core.Domain/Allocation/VisitTask.cs +++ b/IRaCIS.Core.Domain/Allocation/VisitTask.cs @@ -285,12 +285,15 @@ public class VisitTask : BaseFullAuditEntity #region HIR 新增字段 [JsonIgnore] + [ForeignKey("FirstAuditUserId")] public User FirstAuditUser { get; set; } [JsonIgnore] + [ForeignKey("LatestReplyUserId")] public User LatestReplyUser { get; set; } [JsonIgnore] + [ForeignKey("SubjectCriterionClaimUserId")] public User SubjectCriterionClaimUser { get; set; } diff --git a/IRaCIS.Core.Domain/Image/SCPImageUpload.cs b/IRaCIS.Core.Domain/Image/SCPImageUpload.cs index d1650b3e2..d4cfec181 100644 --- a/IRaCIS.Core.Domain/Image/SCPImageUpload.cs +++ b/IRaCIS.Core.Domain/Image/SCPImageUpload.cs @@ -4,13 +4,7 @@ namespace IRaCIS.Core.Domain.Models; [Table("SCPImageUpload")] public class SCPImageUpload : BaseAddAuditEntity { - #region 导航属性 - [JsonIgnore] - public Trial Trial { get; set; } - [JsonIgnore] - public TrialSite TrialSite { get; set; } - #endregion public string CallingAE { get; set; } = string.Empty; public string CalledAE { get; set; } = string.Empty; public string CallingAEIP { get; set; } = string.Empty; @@ -19,6 +13,5 @@ public class SCPImageUpload : BaseAddAuditEntity public int FileCount { get; set; } public long FileSize { get; set; } public int StudyCount { get; set; } - public Guid TrialId { get; set; } - public Guid TrialSiteId { get; set; } + } diff --git a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs index 9778e7371..a0bcd8471 100644 --- a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs +++ b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs @@ -538,9 +538,6 @@ public class IRaCISDBContext : DbContext public virtual DbSet TrialSiteDicomAE { get; set; } - - public virtual DbSet SCPImageUpload { get; set; } - public virtual DbSet UserFeedBack { get; set; } public virtual DbSet TaskAllocationRule { get; set; } @@ -580,6 +577,19 @@ public class IRaCISDBContext : DbContext public virtual DbSet EventStoreRecord { get; set; } + public virtual DbSet SubjectPatient { get; set; } + + public virtual DbSet DicomAE { get; set; } + + public virtual DbSet SubjectPatientSCPStudy { get; set; } + + public virtual DbSet SCPImageUpload { get; set; } + public virtual DbSet SubejctVisitDownload { get; set; } + public virtual DbSet PIAudit { get; set; } + + public virtual DbSet SCPStudySubjectVisit { get; set; } + + } diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20240926034717_CodeFirst_Init.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20240926034717_CodeFirst_Init.Designer.cs deleted file mode 100644 index 472a9f77e..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20240926034717_CodeFirst_Init.Designer.cs +++ /dev/null @@ -1,17717 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20240926034717_CodeFirst_Init")] - partial class CodeFirst_Init - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany() - .HasForeignKey("InstanceId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20240929023747_TrialModifyField.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20240929023747_TrialModifyField.Designer.cs deleted file mode 100644 index b034d4e4a..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20240929023747_TrialModifyField.Designer.cs +++ /dev/null @@ -1,17716 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20240929023747_TrialModifyField")] - partial class TrialModifyField - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany() - .HasForeignKey("InstanceId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20240929023747_TrialModifyField.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20240929023747_TrialModifyField.cs deleted file mode 100644 index ec8804d19..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20240929023747_TrialModifyField.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class TrialModifyField : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "BodyPartTypes", - table: "Trial", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400); - - migrationBuilder.AlterColumn( - name: "EndDate", - table: "Education", - type: "date", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BeginDate", - table: "Education", - type: "date", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "BodyPartTypes", - table: "Trial", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "EndDate", - table: "Education", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateOnly), - oldType: "date", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BeginDate", - table: "Education", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateOnly), - oldType: "date", - oldNullable: true); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241010055705_EventStore.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241010055705_EventStore.Designer.cs deleted file mode 100644 index d2aa6503f..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241010055705_EventStore.Designer.cs +++ /dev/null @@ -1,17774 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241010055705_EventStore")] - partial class EventStore - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241010055705_EventStore.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241010055705_EventStore.cs deleted file mode 100644 index 4dae49b90..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241010055705_EventStore.cs +++ /dev/null @@ -1,153 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class EventStore : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId", - table: "ReadingTableAnswerRowInfo"); - - migrationBuilder.DropForeignKey( - name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId", - table: "SubjectCriteriaEvaluationVisitStudyFilter"); - - migrationBuilder.DropForeignKey( - name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId", - table: "SubjectCriteriaEvaluationVisitStudyFilter"); - - migrationBuilder.AlterColumn( - name: "JudgeResultTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "裁判结果的任务ID(访视或者全局)", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "裁判结果的任务ID"); - - migrationBuilder.AddUniqueConstraint( - name: "AK_DicomInstance_Id", - table: "DicomInstance", - column: "Id"); - - migrationBuilder.CreateTable( - name: "EventStoreRecord", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - EventType = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - EventData = table.Column(type: "nvarchar(max)", nullable: false), - EventState = table.Column(type: "int", nullable: false), - CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_EventStoreRecord", x => x.Id); - table.ForeignKey( - name: "FK_EventStoreRecord_User_CreateUserId", - column: x => x.CreateUserId, - principalTable: "User", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }, - comment: "记录触发的事件,以及状态,从而方便重试操作"); - - migrationBuilder.CreateIndex( - name: "IX_EventStoreRecord_CreateUserId", - table: "EventStoreRecord", - column: "CreateUserId"); - - migrationBuilder.AddForeignKey( - name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId", - table: "ReadingTableAnswerRowInfo", - column: "InstanceId", - principalTable: "DicomInstance", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId", - table: "SubjectCriteriaEvaluationVisitStudyFilter", - column: "SeriesId", - principalTable: "DicomSeries", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId", - table: "SubjectCriteriaEvaluationVisitStudyFilter", - column: "StudyId", - principalTable: "DicomStudy", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId", - table: "ReadingTableAnswerRowInfo"); - - migrationBuilder.DropForeignKey( - name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId", - table: "SubjectCriteriaEvaluationVisitStudyFilter"); - - migrationBuilder.DropForeignKey( - name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId", - table: "SubjectCriteriaEvaluationVisitStudyFilter"); - - migrationBuilder.DropTable( - name: "EventStoreRecord"); - - migrationBuilder.DropUniqueConstraint( - name: "AK_DicomInstance_Id", - table: "DicomInstance"); - - migrationBuilder.AlterColumn( - name: "JudgeResultTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "裁判结果的任务ID", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "裁判结果的任务ID(访视或者全局)"); - - migrationBuilder.AddForeignKey( - name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId", - table: "ReadingTableAnswerRowInfo", - column: "InstanceId", - principalTable: "DicomInstance", - principalColumn: "SeqId"); - - migrationBuilder.AddForeignKey( - name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId", - table: "SubjectCriteriaEvaluationVisitStudyFilter", - column: "SeriesId", - principalTable: "DicomSeries", - principalColumn: "SeqId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId", - table: "SubjectCriteriaEvaluationVisitStudyFilter", - column: "StudyId", - principalTable: "DicomStudy", - principalColumn: "SeqId", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241011030308_TrialImageDownloadAddSubejctId.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241011030308_TrialImageDownloadAddSubejctId.Designer.cs deleted file mode 100644 index 4e0bc8996..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241011030308_TrialImageDownloadAddSubejctId.Designer.cs +++ /dev/null @@ -1,17777 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241011030308_TrialImageDownloadAddSubejctId")] - partial class TrialImageDownloadAddSubejctId - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241011030308_TrialImageDownloadAddSubejctId.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241011030308_TrialImageDownloadAddSubejctId.cs deleted file mode 100644 index bf005be77..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241011030308_TrialImageDownloadAddSubejctId.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class TrialImageDownloadAddSubejctId : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "SubjectId", - table: "TrialImageDownload", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "SubjectId", - table: "TrialImageDownload"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241012011240_DownloadAddTrialSiteCode.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241012011240_DownloadAddTrialSiteCode.Designer.cs deleted file mode 100644 index abe6e189f..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241012011240_DownloadAddTrialSiteCode.Designer.cs +++ /dev/null @@ -1,17793 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241012011240_DownloadAddTrialSiteCode")] - partial class DownloadAddTrialSiteCode - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241012011240_DownloadAddTrialSiteCode.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241012011240_DownloadAddTrialSiteCode.cs deleted file mode 100644 index 99355b5dd..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241012011240_DownloadAddTrialSiteCode.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class DownloadAddTrialSiteCode : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "TrialSiteCode", - table: "TrialImageDownload", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "", - comment: "一致性分析的就显示一致性分析的中心"); - - migrationBuilder.CreateIndex( - name: "IX_TrialImageDownload_SubjectId", - table: "TrialImageDownload", - column: "SubjectId"); - - migrationBuilder.AddForeignKey( - name: "FK_TrialImageDownload_Subject_SubjectId", - table: "TrialImageDownload", - column: "SubjectId", - principalTable: "Subject", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_TrialImageDownload_Subject_SubjectId", - table: "TrialImageDownload"); - - migrationBuilder.DropIndex( - name: "IX_TrialImageDownload_SubjectId", - table: "TrialImageDownload"); - - migrationBuilder.DropColumn( - name: "TrialSiteCode", - table: "TrialImageDownload"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241012022610_AddEventTypeName.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241012022610_AddEventTypeName.Designer.cs deleted file mode 100644 index 00c9d7666..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241012022610_AddEventTypeName.Designer.cs +++ /dev/null @@ -1,17800 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241012022610_AddEventTypeName")] - partial class AddEventTypeName - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241012022610_AddEventTypeName.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241012022610_AddEventTypeName.cs deleted file mode 100644 index 5263749af..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241012022610_AddEventTypeName.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class AddEventTypeName : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "EventType", - table: "EventStoreRecord", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - comment: "完整的事件类型名", - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400); - - migrationBuilder.AddColumn( - name: "EventTypeName", - table: "EventStoreRecord", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "", - comment: "简单的事件类型名"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "EventTypeName", - table: "EventStoreRecord"); - - migrationBuilder.AlterColumn( - name: "EventType", - table: "EventStoreRecord", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400, - oldComment: "完整的事件类型名"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241014085412_UserFeedBackLength.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241014085412_UserFeedBackLength.Designer.cs deleted file mode 100644 index 3c4a84dcb..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241014085412_UserFeedBackLength.Designer.cs +++ /dev/null @@ -1,17799 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241014085412_UserFeedBackLength")] - partial class UserFeedBackLength - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241014085412_UserFeedBackLength.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241014085412_UserFeedBackLength.cs deleted file mode 100644 index 43ba6fb96..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241014085412_UserFeedBackLength.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class UserFeedBackLength : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ScreenshotListStr", - table: "UserFeedBack", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ScreenshotListStr", - table: "UserFeedBack", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241015015326_Question.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241015015326_Question.Designer.cs deleted file mode 100644 index c09b3c3ab..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241015015326_Question.Designer.cs +++ /dev/null @@ -1,17832 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241015015326_Question")] - partial class Question - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResult") - .HasColumnType("int") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResult") - .HasColumnType("int") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241015015326_Question.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241015015326_Question.cs deleted file mode 100644 index 91c9f2ee9..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241015015326_Question.cs +++ /dev/null @@ -1,143 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class Question : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Remark", - table: "ReadingTableQuestionTrial", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - comment: "注释", - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400); - - migrationBuilder.AddColumn( - name: "ClassifyAlgorithms", - table: "ReadingTableQuestionTrial", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "", - comment: "分类算法"); - - migrationBuilder.AddColumn( - name: "ClassifyTableQuestionId", - table: "ReadingTableQuestionTrial", - type: "uniqueidentifier", - nullable: true, - comment: "分类问题表格Id"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "ReadingTableQuestionSystem", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - comment: "备注", - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400); - - migrationBuilder.AddColumn( - name: "IsCopy", - table: "ReadingTableQuestionSystem", - type: "bit", - nullable: false, - defaultValue: false, - comment: "复制病灶的时候 是否复制这个问题"); - - migrationBuilder.AddColumn( - name: "ExportIdentification", - table: "ReadingQuestionTrial", - type: "int", - nullable: true, - comment: "导出标识"); - - migrationBuilder.AddColumn( - name: "ExportResult", - table: "ReadingQuestionTrial", - type: "int", - nullable: true, - comment: "导出结果"); - - migrationBuilder.AddColumn( - name: "ExportIdentification", - table: "ReadingQuestionSystem", - type: "int", - nullable: true, - comment: "导出标识"); - - migrationBuilder.AddColumn( - name: "ExportResult", - table: "ReadingQuestionSystem", - type: "int", - nullable: true, - comment: "导出结果"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ClassifyAlgorithms", - table: "ReadingTableQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ClassifyTableQuestionId", - table: "ReadingTableQuestionTrial"); - - migrationBuilder.DropColumn( - name: "IsCopy", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ExportIdentification", - table: "ReadingQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ExportResult", - table: "ReadingQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ExportIdentification", - table: "ReadingQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ExportResult", - table: "ReadingQuestionSystem"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "ReadingTableQuestionTrial", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400, - oldComment: "注释"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "ReadingTableQuestionSystem", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400, - oldComment: "备注"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241015023351_init.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241015023351_init.Designer.cs deleted file mode 100644 index 9194e93e8..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241015023351_init.Designer.cs +++ /dev/null @@ -1,17835 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241015023351_init")] - partial class init - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241015023351_init.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241015023351_init.cs deleted file mode 100644 index ac2ede9ac..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241015023351_init.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class init : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ExportResult", - table: "ReadingQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ExportResult", - table: "ReadingQuestionSystem"); - - migrationBuilder.AddColumn( - name: "ExportResultStr", - table: "ReadingQuestionTrial", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "[]", - comment: "导出结果"); - - migrationBuilder.AddColumn( - name: "ExportResultStr", - table: "ReadingQuestionSystem", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "[]", - comment: "导出结果"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ExportResultStr", - table: "ReadingQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ExportResultStr", - table: "ReadingQuestionSystem"); - - migrationBuilder.AddColumn( - name: "ExportResult", - table: "ReadingQuestionTrial", - type: "int", - nullable: true, - comment: "导出结果"); - - migrationBuilder.AddColumn( - name: "ExportResult", - table: "ReadingQuestionSystem", - type: "int", - nullable: true, - comment: "导出结果"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241015063950_questionc.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241015063950_questionc.Designer.cs deleted file mode 100644 index 4b05ac01b..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241015063950_questionc.Designer.cs +++ /dev/null @@ -1,17845 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241015063950_questionc")] - partial class questionc - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241015063950_questionc.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241015063950_questionc.cs deleted file mode 100644 index 48dc9a677..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241015063950_questionc.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class questionc : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ClassifyAlgorithms", - table: "ReadingQuestionSystem", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "", - comment: "分类算法"); - - migrationBuilder.AddColumn( - name: "ClassifyQuestionId", - table: "ReadingQuestionSystem", - type: "uniqueidentifier", - nullable: true, - comment: "分类问题Id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ClassifyAlgorithms", - table: "ReadingQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ClassifyQuestionId", - table: "ReadingQuestionSystem"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241015065407_question1.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241015065407_question1.Designer.cs deleted file mode 100644 index 71bf7319a..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241015065407_question1.Designer.cs +++ /dev/null @@ -1,17855 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241015065407_question1")] - partial class question1 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241015065407_question1.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241015065407_question1.cs deleted file mode 100644 index cb367c544..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241015065407_question1.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class question1 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ClassifyAlgorithms", - table: "ReadingTableQuestionSystem", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "", - comment: "分类算法"); - - migrationBuilder.AddColumn( - name: "ClassifyTableQuestionId", - table: "ReadingTableQuestionSystem", - type: "uniqueidentifier", - nullable: true, - comment: "分类问题表格Id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ClassifyAlgorithms", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ClassifyTableQuestionId", - table: "ReadingTableQuestionSystem"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241017065221_EmailModify.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241017065221_EmailModify.Designer.cs deleted file mode 100644 index 9be154a45..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241017065221_EmailModify.Designer.cs +++ /dev/null @@ -1,17863 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241017065221_EmailModify")] - partial class EmailModify - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241017065221_EmailModify.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241017065221_EmailModify.cs deleted file mode 100644 index f5a1f6a3e..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241017065221_EmailModify.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class EmailModify : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "EmailDelaySeconds", - table: "TrialEmailNoticeConfig", - type: "int", - nullable: true, - comment: "邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - migrationBuilder.AddColumn( - name: "EmailDelaySeconds", - table: "EmailNoticeConfig", - type: "int", - nullable: true, - comment: "邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "EmailDelaySeconds", - table: "TrialEmailNoticeConfig"); - - migrationBuilder.DropColumn( - name: "EmailDelaySeconds", - table: "EmailNoticeConfig"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241021053401_DoctorInfo.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241021053401_DoctorInfo.Designer.cs deleted file mode 100644 index 70f3ae0de..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241021053401_DoctorInfo.Designer.cs +++ /dev/null @@ -1,17873 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241021053401_DoctorInfo")] - partial class DoctorInfo - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241021053401_DoctorInfo.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241021053401_DoctorInfo.cs deleted file mode 100644 index 17302999a..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241021053401_DoctorInfo.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class DoctorInfo : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "WorkPartTime", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkPartTimeEn", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "WorkPartTime", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "WorkPartTimeEn", - table: "Doctor"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241022051923_doctorinfo10221319.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241022051923_doctorinfo10221319.Designer.cs deleted file mode 100644 index 4c6ed1f69..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241022051923_doctorinfo10221319.Designer.cs +++ /dev/null @@ -1,17908 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241022051923_doctorinfo10221319")] - partial class doctorinfo10221319 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241022051923_doctorinfo10221319.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241022051923_doctorinfo10221319.cs deleted file mode 100644 index 96d62e5b0..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241022051923_doctorinfo10221319.cs +++ /dev/null @@ -1,102 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class doctorinfo10221319 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "BankName", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "BankNum", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "BankPhoneNum", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "IdCard", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "OpeningBank", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Summarize", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "SummarizeEn", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "BankName", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "BankNum", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "BankPhoneNum", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "IdCard", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "OpeningBank", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "Summarize", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "SummarizeEn", - table: "Doctor"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241022072705_doctorinfo10221525.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241022072705_doctorinfo10221525.Designer.cs deleted file mode 100644 index b0a77b55e..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241022072705_doctorinfo10221525.Designer.cs +++ /dev/null @@ -1,17926 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241022072705_doctorinfo10221525")] - partial class doctorinfo10221525 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241022072705_doctorinfo10221525.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241022072705_doctorinfo10221525.cs deleted file mode 100644 index d5c87c869..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241022072705_doctorinfo10221525.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class doctorinfo10221525 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "OtherCriterion", - table: "TrialExperience", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "OtherStages", - table: "TrialExperience", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "GCPAgencies", - table: "Doctor", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "GCPTime", - table: "Doctor", - type: "datetime2", - nullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "OtherCriterion", - table: "TrialExperience"); - - migrationBuilder.DropColumn( - name: "OtherStages", - table: "TrialExperience"); - - migrationBuilder.DropColumn( - name: "GCPAgencies", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "GCPTime", - table: "Doctor"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241022084419_tablequestion10221643.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241022084419_tablequestion10221643.Designer.cs deleted file mode 100644 index 235acea02..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241022084419_tablequestion10221643.Designer.cs +++ /dev/null @@ -1,17946 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241022084419_tablequestion10221643")] - partial class tablequestion10221643 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241022084419_tablequestion10221643.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241022084419_tablequestion10221643.cs deleted file mode 100644 index 85d3050e0..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241022084419_tablequestion10221643.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class tablequestion10221643 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ExportIdentification", - table: "ReadingTableQuestionTrial", - type: "int", - nullable: true, - comment: "导出标识"); - - migrationBuilder.AddColumn( - name: "ExportResultStr", - table: "ReadingTableQuestionTrial", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "[]", - comment: "导出结果"); - - migrationBuilder.AddColumn( - name: "ExportIdentification", - table: "ReadingTableQuestionSystem", - type: "int", - nullable: true, - comment: "导出标识"); - - migrationBuilder.AddColumn( - name: "ExportResultStr", - table: "ReadingTableQuestionSystem", - type: "nvarchar(400)", - maxLength: 400, - nullable: false, - defaultValue: "[]", - comment: "导出结果"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ExportIdentification", - table: "ReadingTableQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ExportResultStr", - table: "ReadingTableQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ExportIdentification", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ExportResultStr", - table: "ReadingTableQuestionSystem"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241023034834_iamgeandQuestion.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241023034834_iamgeandQuestion.Designer.cs deleted file mode 100644 index 0fcea2caa..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241023034834_iamgeandQuestion.Designer.cs +++ /dev/null @@ -1,17954 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241023034834_iamgeandQuestion")] - partial class iamgeandQuestion - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241023034834_iamgeandQuestion.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241023034834_iamgeandQuestion.cs deleted file mode 100644 index b8e040a7d..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241023034834_iamgeandQuestion.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class iamgeandQuestion : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ImageCount", - table: "ReadingTableQuestionTrial", - type: "int", - nullable: true, - comment: "图片数量"); - - migrationBuilder.AddColumn( - name: "ImageCount", - table: "ReadingTableQuestionSystem", - type: "int", - nullable: true, - comment: "图片数量"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ImageCount", - table: "ReadingTableQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ImageCount", - table: "ReadingTableQuestionSystem"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241023061641_doctorfile.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241023061641_doctorfile.Designer.cs deleted file mode 100644 index 6d2a032ee..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241023061641_doctorfile.Designer.cs +++ /dev/null @@ -1,17958 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241023061641_doctorfile")] - partial class doctorfile - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241023061641_doctorfile.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241023061641_doctorfile.cs deleted file mode 100644 index 3b3786a09..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241023061641_doctorfile.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class doctorfile : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IsIRUpload", - table: "DoctorCriterionFile", - type: "bit", - nullable: false, - defaultValue: false, - comment: "是否是IR上传"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IsIRUpload", - table: "DoctorCriterionFile"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241024011550_question202410240915.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241024011550_question202410240915.Designer.cs deleted file mode 100644 index 5bbbb719f..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241024011550_question202410240915.Designer.cs +++ /dev/null @@ -1,17974 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241024011550_question202410240915")] - partial class question202410240915 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionAnswerList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241024011550_question202410240915.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241024011550_question202410240915.cs deleted file mode 100644 index ccf88533d..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241024011550_question202410240915.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class question202410240915 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ClassifyType", - table: "ReadingTableQuestionTrial", - type: "int", - nullable: true, - comment: "分类类型"); - - migrationBuilder.AddColumn( - name: "ClassifyType", - table: "ReadingTableQuestionSystem", - type: "int", - nullable: true, - comment: "分类类型"); - - migrationBuilder.AddColumn( - name: "ClassifyType", - table: "ReadingQuestionTrial", - type: "int", - nullable: true, - comment: "分类类型"); - - migrationBuilder.AddColumn( - name: "ClassifyType", - table: "ReadingQuestionSystem", - type: "int", - nullable: true, - comment: "分类类型"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ClassifyType", - table: "ReadingTableQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ClassifyType", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ClassifyType", - table: "ReadingQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ClassifyType", - table: "ReadingQuestionSystem"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241025070905_AddSysDocSignType.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241025070905_AddSysDocSignType.Designer.cs deleted file mode 100644 index 9a13e9e6c..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241025070905_AddSysDocSignType.Designer.cs +++ /dev/null @@ -1,17990 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241025070905_AddSysDocSignType")] - partial class AddSysDocSignType - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241025070905_AddSysDocSignType.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241025070905_AddSysDocSignType.cs deleted file mode 100644 index 395c07f09..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241025070905_AddSysDocSignType.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class AddSysDocSignType : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "JudgeVisitTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "在访视或者全局任务上记录 裁判任务的Id", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "裁判任务的Id"); - - migrationBuilder.AlterColumn( - name: "JudgeResultTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "裁判结果的任务ID(访视或者全局)"); - - migrationBuilder.AddColumn( - name: "DocUserSignType", - table: "SystemDocument", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateIndex( - name: "IX_ReadingTableQuestionSystem_ReadingQuestionId", - table: "ReadingTableQuestionSystem", - column: "ReadingQuestionId"); - - migrationBuilder.AddForeignKey( - name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId", - table: "ReadingTableQuestionSystem", - column: "ReadingQuestionId", - principalTable: "ReadingQuestionSystem", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropIndex( - name: "IX_ReadingTableQuestionSystem_ReadingQuestionId", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropColumn( - name: "DocUserSignType", - table: "SystemDocument"); - - migrationBuilder.AlterColumn( - name: "JudgeVisitTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "裁判任务的Id", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "在访视或者全局任务上记录 裁判任务的Id"); - - migrationBuilder.AlterColumn( - name: "JudgeResultTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "裁判结果的任务ID(访视或者全局)", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241028085025_Hospitalid.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241028085025_Hospitalid.Designer.cs deleted file mode 100644 index 4c0f571ae..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241028085025_Hospitalid.Designer.cs +++ /dev/null @@ -1,17990 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241028085025_Hospitalid")] - partial class Hospitalid - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241028085025_Hospitalid.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241028085025_Hospitalid.cs deleted file mode 100644 index 570e64ec5..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241028085025_Hospitalid.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class Hospitalid : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "JudgeVisitTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "在访视或者全局任务上记录 裁判任务的Id", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "裁判任务的Id"); - - migrationBuilder.AlterColumn( - name: "JudgeResultTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "裁判结果的任务ID(访视或者全局)"); - - migrationBuilder.AddColumn( - name: "HospitalId", - table: "Postgraduate", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_ReadingTableQuestionSystem_ReadingQuestionId", - table: "ReadingTableQuestionSystem", - column: "ReadingQuestionId"); - - migrationBuilder.AddForeignKey( - name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId", - table: "ReadingTableQuestionSystem", - column: "ReadingQuestionId", - principalTable: "ReadingQuestionSystem", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropIndex( - name: "IX_ReadingTableQuestionSystem_ReadingQuestionId", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropColumn( - name: "HospitalId", - table: "Postgraduate"); - - migrationBuilder.AlterColumn( - name: "JudgeVisitTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "裁判任务的Id", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "在访视或者全局任务上记录 裁判任务的Id"); - - migrationBuilder.AlterColumn( - name: "JudgeResultTaskId", - table: "VisitTask", - type: "uniqueidentifier", - nullable: true, - comment: "裁判结果的任务ID(访视或者全局)", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241029055808_doctorinfo10291357.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241029055808_doctorinfo10291357.Designer.cs deleted file mode 100644 index 9718e5025..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241029055808_doctorinfo10291357.Designer.cs +++ /dev/null @@ -1,18011 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241029055808_doctorinfo10291357")] - partial class doctorinfo10291357 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExperienceDataType") - .HasColumnType("int"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241029055808_doctorinfo10291357.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241029055808_doctorinfo10291357.cs deleted file mode 100644 index cf1513e97..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241029055808_doctorinfo10291357.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class doctorinfo10291357 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "CriterionType", - table: "TrialExperience", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ExperienceDataType", - table: "TrialExperience", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "IndicationEnum", - table: "TrialExperience", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "TrialId", - table: "TrialExperience", - type: "uniqueidentifier", - nullable: true); - - - - migrationBuilder.AddColumn( - name: "DoctorId", - table: "Doctor", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "TrialId", - table: "Doctor", - type: "uniqueidentifier", - nullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "CriterionType", - table: "TrialExperience"); - - migrationBuilder.DropColumn( - name: "ExperienceDataType", - table: "TrialExperience"); - - migrationBuilder.DropColumn( - name: "IndicationEnum", - table: "TrialExperience"); - - migrationBuilder.DropColumn( - name: "TrialId", - table: "TrialExperience"); - - - - migrationBuilder.DropColumn( - name: "DoctorId", - table: "Doctor"); - - migrationBuilder.DropColumn( - name: "TrialId", - table: "Doctor"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241030012507_IndicationTypeId.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241030012507_IndicationTypeId.Designer.cs deleted file mode 100644 index 83aa48c72..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241030012507_IndicationTypeId.Designer.cs +++ /dev/null @@ -1,18022 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241030012507_IndicationTypeId")] - partial class IndicationTypeId - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExperienceDataType") - .HasColumnType("int"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241030012507_IndicationTypeId.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241030012507_IndicationTypeId.cs deleted file mode 100644 index e383b8fe4..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241030012507_IndicationTypeId.cs +++ /dev/null @@ -1,50 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class IndicationTypeId : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IndicationTypeId", - table: "TrialExperience", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.CreateIndex( - name: "IX_TrialExperience_TrialId", - table: "TrialExperience", - column: "TrialId"); - - migrationBuilder.AddForeignKey( - name: "FK_TrialExperience_Trial_TrialId", - table: "TrialExperience", - column: "TrialId", - principalTable: "Trial", - principalColumn: "Id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_TrialExperience_Trial_TrialId", - table: "TrialExperience"); - - migrationBuilder.DropIndex( - name: "IX_TrialExperience_TrialId", - table: "TrialExperience"); - - migrationBuilder.DropColumn( - name: "IndicationTypeId", - table: "TrialExperience"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241030015957_classify.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241030015957_classify.Designer.cs deleted file mode 100644 index eecff9b02..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241030015957_classify.Designer.cs +++ /dev/null @@ -1,18046 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241030015957_classify")] - partial class classify - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExperienceDataType") - .HasColumnType("int"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241030015957_classify.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241030015957_classify.cs deleted file mode 100644 index 9114cd209..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241030015957_classify.cs +++ /dev/null @@ -1,98 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class classify : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ClassifyEditType", - table: "ReadingTableQuestionTrial", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClassifyShowType", - table: "ReadingTableQuestionTrial", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClassifyEditType", - table: "ReadingTableQuestionSystem", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClassifyShowType", - table: "ReadingTableQuestionSystem", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClassifyEditType", - table: "ReadingQuestionTrial", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClassifyShowType", - table: "ReadingQuestionTrial", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClassifyEditType", - table: "ReadingQuestionSystem", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClassifyShowType", - table: "ReadingQuestionSystem", - type: "int", - nullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ClassifyEditType", - table: "ReadingTableQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ClassifyShowType", - table: "ReadingTableQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ClassifyEditType", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ClassifyShowType", - table: "ReadingTableQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ClassifyEditType", - table: "ReadingQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ClassifyShowType", - table: "ReadingQuestionTrial"); - - migrationBuilder.DropColumn( - name: "ClassifyEditType", - table: "ReadingQuestionSystem"); - - migrationBuilder.DropColumn( - name: "ClassifyShowType", - table: "ReadingQuestionSystem"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241101061056_VisitTaskExpetiedTime.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241101061056_VisitTaskExpetiedTime.Designer.cs deleted file mode 100644 index 2ee148c0b..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241101061056_VisitTaskExpetiedTime.Designer.cs +++ /dev/null @@ -1,18050 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241101061056_VisitTaskExpetiedTime")] - partial class VisitTaskExpetiedTime - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExperienceDataType") - .HasColumnType("int"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpetidEmailNoticeTime") - .HasColumnType("datetime2") - .HasComment("通知IR加急阅片时间"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241101061056_VisitTaskExpetiedTime.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241101061056_VisitTaskExpetiedTime.cs deleted file mode 100644 index fcfcc5d71..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241101061056_VisitTaskExpetiedTime.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class VisitTaskExpetiedTime : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ExpetidEmailNoticeTime", - table: "VisitTask", - type: "datetime2", - nullable: true, - comment: "通知IR加急阅片时间"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ExpetidEmailNoticeTime", - table: "VisitTask"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241106071417_UserSoftDelete.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241106071417_UserSoftDelete.Designer.cs deleted file mode 100644 index 99e14f978..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241106071417_UserSoftDelete.Designer.cs +++ /dev/null @@ -1,18060 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241106071417_UserSoftDelete")] - partial class UserSoftDelete - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExperienceDataType") - .HasColumnType("int"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier") - .HasComment("被操作的人,自己操作的就是自己"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpetidEmailNoticeTime") - .HasColumnType("datetime2") - .HasComment("通知IR加急阅片时间"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241106071417_UserSoftDelete.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241106071417_UserSoftDelete.cs deleted file mode 100644 index 250d2faca..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241106071417_UserSoftDelete.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class UserSoftDelete : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "OptUserId", - table: "UserLog", - type: "uniqueidentifier", - nullable: true, - comment: "被操作的人,自己操作的就是自己", - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "DeleteUserId", - table: "User", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletedTime", - table: "User", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "User", - type: "bit", - nullable: false, - defaultValue: false); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "DeleteUserId", - table: "User"); - - migrationBuilder.DropColumn( - name: "DeletedTime", - table: "User"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "User"); - - migrationBuilder.AlterColumn( - name: "OptUserId", - table: "UserLog", - type: "uniqueidentifier", - nullable: true, - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true, - oldComment: "被操作的人,自己操作的就是自己"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241107022734_TrialConfigAddTrialName.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241107022734_TrialConfigAddTrialName.Designer.cs deleted file mode 100644 index f51d77610..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241107022734_TrialConfigAddTrialName.Designer.cs +++ /dev/null @@ -1,18066 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241107022734_TrialConfigAddTrialName")] - partial class TrialConfigAddTrialName - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialObjectNameConfigStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("项目术语配置Json字符串"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExperienceDataType") - .HasColumnType("int"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier") - .HasComment("被操作的人,自己操作的就是自己"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpetidEmailNoticeTime") - .HasColumnType("datetime2") - .HasComment("通知IR加急阅片时间"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241107022734_TrialConfigAddTrialName.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241107022734_TrialConfigAddTrialName.cs deleted file mode 100644 index b96b21b34..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241107022734_TrialConfigAddTrialName.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class TrialConfigAddTrialName : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "TrialObjectNameConfigStr", - table: "Trial", - type: "nvarchar(1000)", - maxLength: 1000, - nullable: false, - defaultValue: "", - comment: "项目术语配置Json字符串"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "TrialObjectNameConfigStr", - table: "Trial"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241108013005_TestEfcoreJson.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241108013005_TestEfcoreJson.Designer.cs deleted file mode 100644 index 589a7e8eb..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241108013005_TestEfcoreJson.Designer.cs +++ /dev/null @@ -1,18080 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241108013005_TestEfcoreJson")] - partial class TestEfcoreJson - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialObjectNameConfigStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("项目术语配置Json字符串"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExperienceDataType") - .HasColumnType("int"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier") - .HasComment("被操作的人,自己操作的就是自己"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpetidEmailNoticeTime") - .HasColumnType("datetime2") - .HasComment("通知IR加急阅片时间"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DateTimeList") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StringList") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TestEnumList") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241108013005_TestEfcoreJson.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241108013005_TestEfcoreJson.cs deleted file mode 100644 index cc7a90586..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241108013005_TestEfcoreJson.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class TestEfcoreJson : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "DateTimeList", - table: "TestLength", - type: "nvarchar(max)", - nullable: false, - defaultValue: "[]"); - - migrationBuilder.AddColumn( - name: "StringList", - table: "TestLength", - type: "nvarchar(1000)", - maxLength: 1000, - nullable: false, - defaultValue: "[]"); - - migrationBuilder.AddColumn( - name: "TestEnumList", - table: "TestLength", - type: "nvarchar(1000)", - maxLength: 1000, - nullable: false, - defaultValue: "[]"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "DateTimeList", - table: "TestLength"); - - migrationBuilder.DropColumn( - name: "StringList", - table: "TestLength"); - - migrationBuilder.DropColumn( - name: "TestEnumList", - table: "TestLength"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241108051348_TestJsonObject.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241108051348_TestJsonObject.cs deleted file mode 100644 index 8663dc458..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241108051348_TestJsonObject.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class TestJsonObject : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "TestJsonObjectLsit", - table: "TestLength", - type: "nvarchar(max)", - nullable: false, - defaultValue: ""); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "TestJsonObjectLsit", - table: "TestLength"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241108054651_TrialJson.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241108054651_TrialJson.Designer.cs deleted file mode 100644 index da36a62b1..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241108054651_TrialJson.Designer.cs +++ /dev/null @@ -1,18084 +0,0 @@ -// -using System; -using IRaCIS.Core.Infra.EFCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - [DbContext(typeof(IRaCISDBContext))] - [Migration("20241108054651_TrialJson")] - partial class TrialJson - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.10") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("编码"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsOfficial") - .HasColumnType("bit") - .HasComment("是否正式简历"); - - b.Property("Language") - .HasColumnType("int") - .HasComment("1 中文 2为英文"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型名"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("Attachment", t => - { - t.HasComment("医生 - 简历|证书 文档表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CROCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CROName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CRONameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit") - .HasComment("是否是项目级别"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CROCompany", t => - { - t.HasComment("机构 - CRO"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRCNeedReply") - .HasColumnType("bit") - .HasComment("CRC是否需要回复 前端使用"); - - b.Property("ParamInfo") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("核查的检查信息Json"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserTypeEnum") - .HasColumnType("int") - .HasComment("核查过程中的操作用户类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("CheckChallengeDialog", t => - { - t.HasComment("一致性核查 - 对话记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowIndex") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalAnswerRowInfo", t => - { - t.HasComment("受试者 - 临床表单表格问题行记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetEnum") - .HasColumnType("int") - .HasComment("枚举(字典里面取的)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalDataSystemSet", t => - { - t.HasComment("系统 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("ClinicalDataSetEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalDataSetName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ClinicalUploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionEnumListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsApply") - .HasColumnType("bit") - .HasComment("是否应用"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadRole") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemClinicalDataSetId"); - - b.HasIndex("TrialId"); - - b.ToTable("ClinicalDataTrialSet", t => - { - t.HasComment("项目 - 临床数据适应标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CheckDate") - .HasColumnType("datetime2") - .HasComment("检查日期"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("ClinicalForm", t => - { - t.HasComment("受试者 - 临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ClinicalQuestionAnswer", t => - { - t.HasComment("受试者 - 临床表单问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题Id"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier") - .HasComment("答案行的Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("RowId"); - - b.ToTable("ClinicalTableAnswer", t => - { - t.HasComment("受试者 - 临床表单表格问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("系统标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeEnum") - .HasColumnType("int") - .HasComment("类型-上传|导出|邮件附件"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CommonDocument", t => - { - t.HasComment("数据上传 | 数据导出 | 邮件附件 文件记录表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.ToTable("CriterionNidusSystem", t => - { - t.HasComment("系统标准 - 病灶器官表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LesionType") - .HasColumnType("int"); - - b.Property("OrganType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("CriterionNidusTrial", t => - { - t.HasComment("项目标准 - 病灶器官表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BatchId") - .HasColumnType("uniqueidentifier") - .HasComment("批次Id"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("子类"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("创建人姓名"); - - b.Property("CreateUserRealName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片医生"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("被稽查实体名"); - - b.Property("GeneralId") - .HasColumnType("uniqueidentifier") - .HasComment("要稽查对象Id"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("IsFrontAdd") - .HasColumnType("bit") - .HasComment("是否是前端添加"); - - b.Property("IsSign") - .HasColumnType("bit"); - - b.Property("JsonDetail") - .HasColumnType("nvarchar(max)"); - - b.Property("LastJsonDetail") - .HasColumnType("nvarchar(max)") - .HasComment("上一条json"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId") - .HasColumnType("uniqueidentifier") - .HasComment("被稽查对象外键1"); - - b.Property("ObjectRelationParentId2") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectRelationParentId3") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父ID"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RoleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("角色名称"); - - b.Property("SignId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("DataInspection", t => - { - t.HasComment("稽查 - 记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomInstance", t => - { - t.HasComment("归档 - Instance表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("DicomSeries", t => - { - t.HasComment("归档 - 序列表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier") - .HasComment("序列Id 避免内存移动"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDoubleReview") - .HasColumnType("bit"); - - b.Property("IsFromPACS") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("DicomTag.StudyID"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadedTime") - .HasColumnType("datetime2") - .HasComment("上传时间"); - - b.Property("Uploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataTypeEnum") - .HasColumnType("int") - .HasComment("字典类型- 枚举|bool|下拉框"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("是否字典类型配置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("ConfigTypeId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("Dictionary", t => - { - t.HasComment("后台 - 字典表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptingNewTrial") - .HasColumnType("bit"); - - b.Property("ActivelyReading") - .HasColumnType("bit"); - - b.Property("AdminComment") - .HasColumnType("nvarchar(max)"); - - b.Property("AuditTime") - .HasColumnType("datetime2"); - - b.Property("AuditUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankPhoneNum") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindPublications") - .HasColumnType("nvarchar(max)"); - - b.Property("ChineseName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CooperateStatus") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DepartmentOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DepartmentOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCP") - .HasColumnType("int"); - - b.Property("GCPAgencies") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("GCPId") - .HasColumnType("uniqueidentifier"); - - b.Property("GCPTime") - .HasColumnType("datetime2"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IdCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Introduction") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsVirtual") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Nation") - .HasColumnType("int"); - - b.Property("OpeningBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherClinicalExperience") - .HasColumnType("nvarchar(max)"); - - b.Property("OtherClinicalExperienceCN") - .HasColumnType("nvarchar(max)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhotoPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Physician") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhysicianId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("PositionOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("RankOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingTypeOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ResumePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ResumeStatus") - .HasColumnType("int"); - - b.Property("ReviewStatus") - .HasColumnType("int"); - - b.Property("ReviewerCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("SpecialityId") - .HasColumnType("uniqueidentifier"); - - b.Property("SpecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SpecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOther") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubspecialityOtherCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Summarize") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SummarizeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WeChat") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WorkPartTimeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("HospitalId"); - - b.HasIndex("PositionId"); - - b.HasIndex("RankId"); - - b.HasIndex("SpecialityId"); - - b.ToTable("Doctor", t => - { - t.HasComment("医生 - 基础信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FilePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsIRUpload") - .HasColumnType("bit") - .HasComment("是否是IR上传"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorCriterionFile", t => - { - t.HasComment("医生 - 项目标准签名文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("DoctorId"); - - b.ToTable("DoctorDictionary", t => - { - t.HasComment("医生 - 医生字典关联表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Degree") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DegreeCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Organization") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Education", t => - { - t.HasComment("医生 - 教育信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int") - .HasComment("业务级别"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int") - .HasComment("业务模块"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int") - .HasComment("业务场景"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int") - .HasComment("标准枚举"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送周期"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int") - .HasComment("加急枚举"); - - b.Property("IsAutoSend") - .HasColumnType("bit") - .HasComment("是否自动发送"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit") - .HasComment("是否区分标准"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit") - .HasComment("是否需要回执"); - - b.Property("SystemLevel") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EmailNoticeConfig", t => - { - t.HasComment("后台 - 邮件配置表表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EmailNoticeConfigId"); - - b.ToTable("EmailNoticeUserType", t => - { - t.HasComment("后台 - 邮件配置用户类型表(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("Adjudication24H") - .HasColumnType("int"); - - b.Property("Adjudication48H") - .HasColumnType("int"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AttachmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier") - .HasComment("生成账号 加入到项目中后 赋值"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("EnrollTime") - .HasColumnType("datetime2"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollTime") - .HasColumnType("datetime2"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("ReviewerReadingType") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("Timepoint24H") - .HasColumnType("int"); - - b.Property("Timepoint48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("Enroll", t => - { - t.HasComment("医生 - 入组项目中间记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollStatus") - .HasColumnType("int"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialDetailId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId"); - - b.HasIndex("TrialDetailId"); - - b.ToTable("EnrollDetail", t => - { - t.HasComment("医生 - 入组项目流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingCategory") - .HasColumnType("int"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCategory", t => - { - t.HasComment("医生 - 项目阅片标准阅片类型配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinAnalysis") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EnrollId"); - - b.ToTable("EnrollReadingCriterion", t => - { - t.HasComment("医生 - 项目阅片标准参与一致性分析配置表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("EventState") - .HasColumnType("int"); - - b.Property("EventType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("完整的事件类型名"); - - b.Property("EventTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("简单的事件类型名"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("EventStoreRecord", t => - { - t.HasComment("记录触发的事件,以及状态,从而方便重试操作"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExchangeRate", t => - { - t.HasComment("医生计费 - 汇率"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DownloadUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ExploreType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ExploreRecommend", t => - { - t.HasComment("后台 - 浏览器推荐 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildDataEnLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChildDataLabel") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端渲染数组 数组名 和数组值"); - - b.Property("ChildDataValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("子数据Value"); - - b.Property("ChildrenTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字段名 这里有可能是一个数组名 那么具体的翻译字段名就不是这个了"); - - b.Property("CodeEn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ConfigType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端使用 C M"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("前端展示类型 Router, Array,Table"); - - b.Property("DateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("日期格式"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("翻译的字典名(单个字段翻译的时候)"); - - b.Property("DictionaryKey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典名称-待废弃核查"); - - b.Property("DictionaryType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("枚举字典Type"); - - b.Property("EnumType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("后端翻译的类型 对应前端界面 Dictionary Date"); - - b.Property("ForeignKeyEnText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ForeignKeyTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键表"); - - b.Property("ForeignKeyText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Text"); - - b.Property("ForeignKeyValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("外键Value"); - - b.Property("Identification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标识"); - - b.Property("InterfaceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("接口名"); - - b.Property("IsConfig") - .HasColumnType("bit") - .HasComment("未知是否有用-废弃核查"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFinish") - .HasColumnType("bit") - .HasComment("是否完成"); - - b.Property("IsHaveReason") - .HasColumnType("bit") - .HasComment("是否有原因"); - - b.Property("IsHaveSign") - .HasColumnType("bit") - .HasComment("是否有签名"); - - b.Property("IsJoinPlan") - .HasColumnType("bit") - .HasComment("是否加入计划"); - - b.Property("IsShowByTrialConfig") - .HasColumnType("bit") - .HasComment("待废弃核查"); - - b.Property("IsShowParent") - .HasColumnType("int"); - - b.Property("IsSpecialType") - .HasColumnType("bit") - .HasComment("是否为特殊类型"); - - b.Property("ModuleTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ObjectTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Sort") - .HasColumnType("int"); - - b.Property("TableConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("TrialConfigRelyFieldName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("待废弃核查"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UrlConfigJsonStr") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("FrontAuditConfig", t => - { - t.HasComment("稽查 - 配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HospitalName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier") - .HasComment("中心Id"); - - b.Property("UniversityAffiliated") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UniversityAffiliatedCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.ToTable("Hospital", t => - { - t.HasComment("机构 - 医院"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ImageShare", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("ImageShare", t => - { - t.HasComment("影像 - 影像分享记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RelativePath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("InspectionFile", t => - { - t.HasComment("一致性核查文件"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FrontType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InternationalizationType") - .HasColumnType("int"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishLogId") - .HasColumnType("uniqueidentifier") - .HasComment("关联版本历史记录表Id"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 1 2 预翻译 已确认 废除"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishLogId"); - - b.ToTable("Internationalization", t => - { - t.HasComment("后台 - 国际化配置表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApiPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("Api 接口地址"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("组件路径"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCache") - .HasColumnType("bit"); - - b.Property("IsDisplay") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("启用 禁用"); - - b.Property("IsExternalLink") - .HasColumnType("bit"); - - b.Property("IsInTabDisplay") - .HasColumnType("bit"); - - b.Property("LanguageMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuIcon") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MenuType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型(M目录 C菜单 F按钮 L链接)"); - - b.Property("Meta") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("上级菜单"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("路由地址"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("权限点"); - - b.Property("Redirect") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Menu", t => - { - t.HasComment("后台 - 系统菜单 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BodyPart") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("ImageDate") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadVideoTime") - .HasColumnType("datetime2"); - - b.Property("VideoName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoObjectName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VideoUrl") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("NoneDicomStudy", t => - { - t.HasComment("影像 - 非dicom检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoneDicomStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("OriginNoneDicomStudyId") - .HasColumnType("uniqueidentifier") - .HasComment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NoneDicomStudyId"); - - b.HasIndex("OriginNoneDicomStudyId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("NoneDicomStudyFile", t => - { - t.HasComment("影像 - 非dicom检查关联文件表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("OrganInfo", t => - { - t.HasComment("后台 - 系统标准器官 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Classification") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类"); - - b.Property("ClassificationEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类 英文"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit") - .HasComment("是否可编辑位置"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsLymphNodes") - .HasColumnType("int") - .HasComment("是否是淋巴结"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OrganType") - .HasColumnType("int") - .HasComment("器官类型"); - - b.Property("Part") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位"); - - b.Property("PartEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("部位 英文"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("序号"); - - b.Property("TULAT") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置"); - - b.Property("TULATEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("位置 英文"); - - b.Property("TULOC") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官"); - - b.Property("TULOCEN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("TULOC 器官 英文"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("标准Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OrganInfoId"); - - b.ToTable("OrganTrialInfo", t => - { - t.HasComment("项目标准 - 器官"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CalculateTime") - .HasColumnType("datetime2"); - - b.Property("CalculateUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Payment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("AdjustmentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("YearMonthDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentAdjustment", t => - { - t.HasComment("医生计费 - 每月支付记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasePrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Count") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExchangeRate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentCNY") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("PaymentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PaymentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PaymentUSD") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PersonalAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowCodeOrder") - .HasColumnType("int"); - - b.Property("ShowTypeOrder") - .HasColumnType("int"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PaymentDetail", t => - { - t.HasComment("医生计费 - 每月支付详情表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("date"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CityCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CountryCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("date"); - - b.Property("Hospital") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Major") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MajorCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProvinceCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("School") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SchoolCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Training") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrainingCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Postgraduate", t => - { - t.HasComment("医生 - 继续教育经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("int"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Position") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousHistory", t => - { - t.HasComment("受试者访视 - 既往放疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsPD") - .HasColumnType("bit"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TreatmentType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousOther", t => - { - t.HasComment("受试者访视 - 既往其他治疗史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalLevel") - .HasColumnType("int") - .HasComment("临床级别"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataType") - .HasColumnType("int") - .HasComment("数据类型"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsVisist") - .HasColumnType("bit"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadType") - .HasColumnType("int") - .HasComment("上传方式"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousPDF", t => - { - t.HasComment("受试者访视 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsSubjectLevel") - .HasColumnType("bit"); - - b.Property("OperationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("PreviousSurgery", t => - { - t.HasComment("受试者访视 - 既往手术史"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCurrentVersion") - .HasColumnType("bit"); - - b.Property("PublishTime") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int") - .HasComment("0 开发中 ,已发布"); - - b.Property("UpdateContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Version_US") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("PublishLog", t => - { - t.HasComment("后台 - 系统发布日志 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActionContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ChallengeCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CloseResonEnum") - .HasColumnType("int"); - - b.Property("ClosedTime") - .HasColumnType("datetime2"); - - b.Property("ClosedUser") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1200) - .HasColumnType("nvarchar(1200)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int"); - - b.Property("DeadlineTime") - .HasColumnType("datetime2"); - - b.Property("IsClosed") - .HasColumnType("bit"); - - b.Property("LatestMsgTime") - .HasColumnType("datetime2"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("ReUploadUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReUploadedTime") - .HasColumnType("datetime2"); - - b.Property("ReUploader") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReuploadEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallenge", t => - { - t.HasComment("受试者访视 - QC质疑"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QCChallengeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TalkContent") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QCChallengeId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("QCChallengeDialog", t => - { - t.HasComment("受试者访视 - QC质疑对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("QCQuestion", t => - { - t.HasComment("后台 - QC质控问题(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("RankPrice", t => - { - t.HasComment("医生计费 - 不同时间点价格设置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsCRCApplicationRevoke") - .HasColumnType("bit") - .HasComment("CRC是否正在申请撤回"); - - b.Property("IsCRCConfirm") - .HasColumnType("bit"); - - b.Property("IsClinicalDataBlind") - .HasColumnType("bit") - .HasComment("临床数据是否盲化"); - - b.Property("IsClinicalDataComplete") - .HasColumnType("bit") - .HasComment("临床数据是否完整"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsNotNeedPMConfirm") - .HasColumnType("bit"); - - b.Property("IsPMConfirm") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("ModuleName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("模块名称"); - - b.Property("ModuleType") - .HasColumnType("int") - .HasComment("模块类型"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片计划ID"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("ReadModule", t => - { - t.HasComment("读片模块"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalFormId") - .HasColumnType("uniqueidentifier") - .HasComment("表单Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalFormId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadModuleId"); - - b.ToTable("ReadModuleCriterionFrom", t => - { - t.HasComment("受试者 - 阅片模块临床表单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingClinicalData", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingClinicalDataId"); - - b.ToTable("ReadingClinicalDataPDF", t => - { - t.HasComment("项目的临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalDataTrialSetId") - .HasColumnType("uniqueidentifier") - .HasComment("临床数据类型Id"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("IsBlind") - .HasColumnType("bit") - .HasComment("是否盲化"); - - b.Property("IsComplete") - .HasColumnType("bit") - .HasComment("是否完整"); - - b.Property("IsSign") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsVisit") - .HasColumnType("bit") - .HasComment("是否为访视"); - - b.Property("ReadingClinicalDataState") - .HasColumnType("int") - .HasComment("临床数据状态"); - - b.Property("ReadingId") - .HasColumnType("uniqueidentifier") - .HasComment("访视Id 或者模块Id"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("ClinicalDataTrialSetId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingConsistentClinicalData", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ReadingConsistentClinicalDataId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片临床数据ID"); - - b.Property("Size") - .HasColumnType("int"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingConsistentClinicalDataId"); - - b.ToTable("ReadingConsistentClinicalDataPDF", t => - { - t.HasComment("一致性分析临床数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsPublicPage") - .HasColumnType("bit") - .HasComment("是否公共分页"); - - b.Property("PageName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分页名称"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCriterionPage", t => - { - t.HasComment("阅片标准分页"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingCustomTag", t => - { - t.HasComment("项目阅片 - 自定义标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("问题答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalAnswerType") - .HasColumnType("int") - .HasComment("全局答案类型"); - - b.Property("GlobalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("全局任务Id"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("问题ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("原任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GlobalTaskId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingGlobalTaskInfo", t => - { - t.HasComment("阅片全局任务信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("JudgeTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("裁判任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskIdOne") - .HasColumnType("uniqueidentifier") - .HasComment("第一个任务ID"); - - b.Property("TaskIdTwo") - .HasColumnType("uniqueidentifier") - .HasComment("第二个任务ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingJudgeInfo", t => - { - t.HasComment("阅片裁判信息"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("对话内容"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UserTypeEnumInt") - .HasColumnType("int") - .HasComment("用户角色枚举"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("用户角色"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicalReviewDialog", t => - { - t.HasComment("阅片医学审核对话"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMedicineQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核问题Id"); - - b.Property("TaskMedicalReviewId") - .HasColumnType("uniqueidentifier") - .HasComment("医学审核Id"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskMedicalReviewId"); - - b.ToTable("ReadingMedicineQuestionAnswer", t => - { - t.HasComment("阅片医学问题答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsGeneral") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否是必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineSystemQuestion", t => - { - t.HasComment("阅片医学审核系统问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("bit") - .HasComment("是否必须"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目ID"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("ReadingMedicineTrialQuestion", t => - { - t.HasComment("阅片医学审核项目问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("结果"); - - b.Property("OncologyTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("肿瘤学 阅片任务ID"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier") - .HasComment("受试者Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生肿瘤学阅片任务的 访视类型的阅片任务Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("OncologyTaskId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingOncologyTaskInfo", t => - { - t.HasComment("阅片肿瘤学 针对访视任务 添加了一个结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("访视"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("SubjectVisitId"); - - b.ToTable("ReadingPeriodPlan", t => - { - t.HasComment("阅片计划"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EffectOfTime") - .HasColumnType("datetime2") - .HasComment("生效时间"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2") - .HasComment("截止日期"); - - b.Property("ExpirationVisitNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("截止访视"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsGlobal") - .HasColumnType("bit") - .HasComment("是否为全局阅片"); - - b.Property("IsTakeEffect") - .HasColumnType("int") - .HasComment("是否生效"); - - b.Property("ReadingPeriodName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("阅片期名称"); - - b.Property("ReadingScope") - .HasColumnType("int") - .HasComment("阅片范围"); - - b.Property("ReadingSetType") - .HasColumnType("int") - .HasComment("阅片配置的类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("VisitStageId"); - - b.ToTable("ReadingPeriodSet", t => - { - t.HasComment("阅片期设置 只会设计到所有人 或者某个Site 针对全局"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingPeriodSetId") - .HasColumnType("uniqueidentifier") - .HasComment("阅片期配置ID"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingPeriodSetId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("ReadingPeriodSite", t => - { - t.HasComment("阅片期和中心关联"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2") - .HasComment("确认时间"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ReadingQuestionCriterionSystem", t => - { - t.HasComment("系统阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArbitrationRule") - .HasColumnType("int") - .HasComment("仲裁对象"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionModalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CriterionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标准"); - - b.Property("CriterionType") - .HasColumnType("int") - .HasComment("标准类型"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("描述"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("修约小数点"); - - b.Property("EvaluationReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估原因"); - - b.Property("EvaluationResult") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("评估结果"); - - b.Property("FollowGlobalVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续全局自动分配默认状态"); - - b.Property("FollowJudgeTaskAutoAssignDefaultState") - .HasColumnType("int"); - - b.Property("FollowVisitAutoAssignDefaultState") - .HasColumnType("int") - .HasComment("后续访视自动分配默认状态"); - - b.Property("FormType") - .HasColumnType("int") - .HasComment("表单类型"); - - b.Property("GlobalUpdateType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片评估更新类型"); - - b.Property("ImageDownloadEnum") - .HasColumnType("int") - .HasComment("阅片过程下载影像"); - - b.Property("ImagePlatform") - .HasColumnType("int") - .HasComment("阅片平台"); - - b.Property("ImageUploadEnum") - .HasColumnType("int") - .HasComment("阅片过程上传影像"); - - b.Property("IsAdditionalAssessment") - .HasColumnType("bit") - .HasComment("是否附加评估"); - - b.Property("IsArbitrationReading") - .HasColumnType("bit") - .HasComment("仲裁阅片"); - - b.Property("IsAutoCreate") - .HasColumnType("bit") - .HasComment("自动 手动生成任务"); - - b.Property("IsCompleteConfig") - .HasColumnType("bit") - .HasComment("是否完成配置"); - - b.Property("IsConfirm") - .HasColumnType("bit") - .HasComment("是否确认"); - - b.Property("IsConfirmMedicineQuestion") - .HasColumnType("bit") - .HasComment("是确认医学审核问题"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsFollowGlobalVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续全局自动分配"); - - b.Property("IsFollowJudgeTaskAutoAssign") - .HasColumnType("bit"); - - b.Property("IsFollowVisitAutoAssign") - .HasColumnType("bit") - .HasComment("后续访视任务自动分配"); - - b.Property("IsGlobalReading") - .HasColumnType("bit") - .HasComment("是否生成全局阅片任务"); - - b.Property("IsImageFilter") - .HasColumnType("bit") - .HasComment("是否影像筛选"); - - b.Property("IsMustGlobalReading") - .HasColumnType("bit") - .HasComment("是否必须全局阅片"); - - b.Property("IsOncologyReading") - .HasColumnType("bit") - .HasComment("肿瘤学阅片 原字段 IsClinicalReading"); - - b.Property("IsReadingPeriod") - .HasColumnType("bit") - .HasComment("存在阅片期"); - - b.Property("IsReadingShowPreviousResults") - .HasColumnType("bit") - .HasComment("IR阅片页面是否可以查看既往任务结果"); - - b.Property("IsReadingShowSubjectInfo") - .HasColumnType("bit") - .HasComment("阅片是否显示受试者信息"); - - b.Property("IsReadingTaskViewInOrder") - .HasColumnType("int") - .HasComment("任务展示访视 读片任务显示是否顺序"); - - b.Property("IsShowDetail") - .HasColumnType("bit") - .HasComment("是否显示详情"); - - b.Property("IsSigned") - .HasColumnType("bit") - .HasComment("是否签名"); - - b.Property("IsSystemSetOncology") - .HasColumnType("bit") - .HasComment("是否系统设置了 肿瘤学"); - - b.Property("IsUrgent") - .HasColumnType("bit") - .HasComment("是否加急"); - - b.Property("IseCRFShowInDicomReading") - .HasColumnType("bit") - .HasComment("eCRF报告是否显示在图像页面"); - - b.Property("ReadingInfoSignTime") - .HasColumnType("datetime2") - .HasComment("阅片信息签名时间"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准ID"); - - b.Property("ReadingTaskViewEnum") - .HasColumnType("int") - .HasComment("任务组织级别"); - - b.Property("ReadingTool") - .HasColumnType("int") - .HasComment("阅片工具"); - - b.Property("ReadingType") - .HasColumnType("int") - .HasComment("阅片模式"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SynchronizeOriginalTime") - .HasColumnType("datetime2") - .HasComment("同步器官时间"); - - b.Property("SynchronizeTime") - .HasColumnType("datetime2") - .HasComment("同步时间"); - - b.Property("TaskAllocateObjEnum") - .HasColumnType("int") - .HasComment("任务分配对象"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("ReadingQuestionCriterionTrial", t => - { - t.HasComment("项目阅片标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingQuestionCriterionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingQuestionCriterionSystemId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionSystem", t => - { - t.HasComment("系统阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AnswerCombination") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案组合"); - - b.Property("AnswerGroup") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("答案分组"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题Id"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("ConvertShowType") - .HasColumnType("int") - .HasComment("转化显示类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DefaultValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("默认值"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("GlobalReadingShowType") - .HasColumnType("int") - .HasComment("全局阅片显示类型"); - - b.Property("GroupClassify") - .HasColumnType("int") - .HasComment("分组分类"); - - b.Property("GroupEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文分组"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组ID"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分组"); - - b.Property("HighlightAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("高亮问题的答案"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsAdditional") - .HasColumnType("bit"); - - b.Property("IsCopyLesions") - .HasColumnType("bit") - .HasComment("是否复制病灶"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeQuestion") - .HasColumnType("bit") - .HasComment("是否是裁判问题"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否是必须"); - - b.Property("IsShowInDicom") - .HasColumnType("bit") - .HasComment("是否显示在Dicom阅片中"); - - b.Property("JudgeDifferenceType") - .HasColumnType("int") - .HasComment("裁判百分比或绝对值的相差值匹配规则"); - - b.Property("JudgeDifferenceValue") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("裁判百分比或绝对值的相差值"); - - b.Property("JudgeType") - .HasColumnType("int") - .HasComment("裁判类型"); - - b.Property("LesionType") - .HasColumnType("int") - .HasComment("病灶类型"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("LimitShow") - .HasColumnType("int") - .HasComment("限制显示"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("序号标记"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题ID"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionGenre") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("QuestionType") - .HasColumnType("int") - .HasComment("问题类型"); - - b.Property("ReadingCriterionPageId") - .HasColumnType("uniqueidentifier") - .HasComment("标准分页Id"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目标准Id"); - - b.Property("ReadingQuestionSystemId") - .HasColumnType("uniqueidentifier") - .HasComment("系统问题ID"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemParentId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准的ParentId"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目Id"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("类型值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReadingCriterionPageId"); - - b.HasIndex("ReadingQuestionCriterionTrialId"); - - b.HasIndex("RelevanceId"); - - b.ToTable("ReadingQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int") - .HasComment("标准字典分组"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("IsSystemCriterion") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingSystemCriterionDictionary", t => - { - t.HasComment("系统标准 - 全局配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的CTSeriesId"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FristAddTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("首次添加任务ID"); - - b.Property("FristAddTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("第一次添加的任务ID"); - - b.Property("FromMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("来自于哪个标记"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCanEditPosition") - .HasColumnType("bit"); - - b.Property("IsCurrentTaskAdd") - .HasColumnType("bit") - .HasComment("是否是当前任务添加"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDicomReading") - .HasColumnType("bit") - .HasComment("是Dicom阅片"); - - b.Property("MarkTool") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("标记工具"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MergeRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganInfoId") - .HasColumnType("uniqueidentifier") - .HasComment("器官Id"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PTSeriesId") - .HasColumnType("uniqueidentifier") - .HasComment("融合的PTSeriesId"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("截图地址"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReportMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("报告页面显示来自于哪个标记"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RowMark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("病灶编号"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SplitOrMergeType") - .HasColumnType("int"); - - b.Property("SplitRowId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗位WL"); - - b.Property("WW") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("窗宽WW"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InstanceId"); - - b.HasIndex("MergeRowId"); - - b.HasIndex("OrganInfoId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("SplitRowId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableAnswerRowInfo", t => - { - t.HasComment("表格问题答案行数据"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowId") - .HasColumnType("uniqueidentifier"); - - b.Property("RowIndex") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("表格问题Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("RowId"); - - b.HasIndex("TableQuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTableQuestionAnswer", t => - { - t.HasComment("项目阅片 - 表格问题行记录子项答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据列"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("数据表名称"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier") - .HasComment("关联父问题"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int") - .HasComment("是否关联"); - - b.Property("IsEnable") - .HasColumnType("bit") - .HasComment("是否启用"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int") - .HasComment("最大问题数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表的问题Id ReadingQuestionSystem的Id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("显示父问题"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("显示父问题的值"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("备注"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序号"); - - b.Property("ShowQuestion") - .HasColumnType("int") - .HasComment("是否显示"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统标准Id"); - - b.Property("TableQuestionType") - .HasColumnType("int") - .HasComment("表格问题类型"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("值"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionSystem", t => - { - t.HasComment("系统表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算标记"); - - b.Property("ClassifyAlgorithms") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("分类算法"); - - b.Property("ClassifyEditType") - .HasColumnType("int"); - - b.Property("ClassifyShowType") - .HasColumnType("int"); - - b.Property("ClassifyTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("分类问题表格Id"); - - b.Property("ClassifyType") - .HasColumnType("int") - .HasComment("分类类型"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("CustomUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义单位"); - - b.Property("DataSource") - .HasColumnType("int") - .HasComment("数据来源"); - - b.Property("DataTableColumn") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DataTableName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DependParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典code"); - - b.Property("ExportIdentification") - .HasColumnType("int") - .HasComment("导出标识"); - - b.Property("ExportResultStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("导出结果"); - - b.Property("FileType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件类型"); - - b.Property("ImageCount") - .HasColumnType("int") - .HasComment("图片数量"); - - b.Property("IsCopy") - .HasColumnType("bit") - .HasComment("复制病灶的时候 是否复制这个问题"); - - b.Property("IsDepend") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("int"); - - b.Property("LimitEdit") - .HasColumnType("int") - .HasComment("限制编辑"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大答案长度"); - - b.Property("MaxRowCount") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionClassify") - .HasColumnType("int") - .HasComment("问题分类"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionMark") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReadingQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题的Id ReadingQuestionTrial的id"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("注释"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("ShowQuestion") - .HasColumnType("int"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TableQuestionType") - .HasColumnType("int"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Unit") - .HasColumnType("int") - .HasComment("单位"); - - b.Property("ValueType") - .HasColumnType("int") - .HasComment("数值类型"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DependParentId"); - - b.HasIndex("ReadingQuestionId"); - - b.ToTable("ReadingTableQuestionTrial", t => - { - t.HasComment("项目阅片问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("答案"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("GlobalChangeAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("全局阅片修改的答案"); - - b.Property("IsGlobalChange") - .HasColumnType("bit") - .HasComment("全局阅片是否修改"); - - b.Property("ReadingQuestionCriterionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题标准Id"); - - b.Property("ReadingQuestionTrialId") - .HasColumnType("uniqueidentifier") - .HasComment("项目问题Id"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ReadingQuestionTrialId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionAnswer", t => - { - t.HasComment("阅片任务答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstAddTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("MarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("OrderMarkName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherInstanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherMarkTool") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherMeasureData") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OtherNumberOfFrames") - .HasColumnType("int"); - - b.Property("OtherPicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("OtherSeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherStudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("PicturePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("QuestionId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("ReadingTaskQuestionMark", t => - { - t.HasComment("项目阅片 - 任务问题标记"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelevanceTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("关联的任务ID"); - - b.Property("RelevanceType") - .HasColumnType("int") - .HasComment("类型具体解释 看枚举"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier") - .HasComment("任务ID"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TaskId"); - - b.ToTable("ReadingTaskRelation", t => - { - t.HasComment("任务关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("CrterionDictionaryGroup") - .HasColumnType("int"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsBaseLineUse") - .HasColumnType("bit"); - - b.Property("IsFollowVisitUse") - .HasColumnType("bit"); - - b.Property("ParentCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CriterionId"); - - b.HasIndex("DictionaryId"); - - b.ToTable("ReadingTrialCriterionDictionary", t => - { - t.HasComment("项目阅片标准 - 全局配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AwardsHonors") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("AwardsHonorsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Grants") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("GrantsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Publications") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PublicationsCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Research") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ResearchCN") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ResearchPublication", t => - { - t.HasComment("医生 - 科研学术记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Additional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BankCardNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorNameInBank") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IDCard") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RankId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("DoctorPayInformation", t => - { - t.HasComment("医生计费 - 支付信息表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAEIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("StudyCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPImageUpload", t => - { - t.HasComment("项目中心 - 影像推送记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPInstance", t => - { - t.HasComment("项目中心 - 推送Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EarliestStudyTime") - .HasColumnType("datetime2"); - - b.Property("LatestPushTime") - .HasColumnType("datetime2"); - - b.Property("LatestStudyTime") - .HasColumnType("datetime2"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPPatient", t => - { - t.HasComment("项目中心 - 推送检查患者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("SCPSeries", t => - { - t.HasComment("项目中心 - 推送序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsUploadFinished") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PatientIdStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PatientId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SCPStudy", t => - { - t.HasComment("项目中心 - 推送检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltKey") - .HasColumnType("bit"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CtrlKey") - .HasColumnType("bit"); - - b.Property("ImageToolType") - .HasColumnType("int") - .HasComment("影像工具类型"); - - b.Property("Keyboardkey") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对应的键盘按键"); - - b.Property("MetaKey") - .HasColumnType("bit"); - - b.Property("ShiftKey") - .HasColumnType("bit"); - - b.Property("ShortcutKeyEnum") - .HasColumnType("int") - .HasComment("按键枚举"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("ShortcutKey", t => - { - t.HasComment("用户配置 - 快捷键"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ContactName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ContactPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DirectorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DirectorPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HospitalId") - .HasColumnType("uniqueidentifier"); - - b.Property("Province") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SiteNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("UniqueCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("HospitalId"); - - b.ToTable("Site", t => - { - t.HasComment("机构 - Site"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsTrialLevel") - .HasColumnType("bit"); - - b.Property("SponsorCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Sponsor", t => - { - t.HasComment("机构 - Sponsor"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArchiveFinishedTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FailedFileCount") - .HasColumnType("int"); - - b.Property("FileCount") - .HasColumnType("int"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicom") - .HasColumnType("bit"); - - b.Property("IsDicomReUpload") - .HasColumnType("bit"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RecordPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier") - .HasComment("Dicom/非Dicom"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UploadFinishedTime") - .HasColumnType("datetime2"); - - b.Property("UploadStartTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.ToTable("StudyMonitor", t => - { - t.HasComment("项目 - 影像上传监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Age") - .HasColumnType("int"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("FinalSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("FirstGiveMedicineTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Height") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollment") - .HasColumnType("bit"); - - b.Property("IsReReadingOrBackInfluenceAnalysis") - .HasColumnType("bit") - .HasComment("重阅或者退回影响一致性分析"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LatestSubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentTime") - .HasColumnType("datetime2"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignDate") - .HasColumnType("datetime2") - .HasComment("知情同意书签署日期"); - - b.Property("Status") - .HasColumnType("int") - .HasComment("1 访视中,2 出组 3 访视结束"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitOverTime") - .HasColumnType("datetime2"); - - b.Property("Weight") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FinalSubjectVisitId"); - - b.HasIndex("LatestSubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("Subject", t => - { - t.HasComment("项目 - 受试者"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FinalAnswer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果"); - - b.Property("FinalTranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("最终结果翻字典"); - - b.Property("IsFinalResult") - .HasColumnType("bit") - .HasComment("是否是最终结果"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TranslateDictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("附加评估答案翻译字典"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingQuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingQuestionId"); - - b.ToTable("SubjectAdditionalEvaluationResult", t => - { - t.HasComment("受试者 - 附加评估标准结果"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.ToTable("SubjectCanceDoctor", t => - { - t.HasComment("受试者 - 阅片标准取消分配医生记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsJoinEvaluation") - .HasColumnType("bit") - .HasComment("是否参与评估"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluation", t => - { - t.HasComment("受试者 - 参与附加评估标准配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageDeterminationResultState") - .HasColumnType("int") - .HasComment("影像判断结果"); - - b.Property("ImageFilterState") - .HasColumnType("int") - .HasComment("影像筛选状态"); - - b.Property("IsGeneratedTask") - .HasColumnType("bit") - .HasComment("是否已生成任务"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsReading") - .HasColumnType("bit"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("SubjectCriteriaEvaluationVisitStudyFilter", t => - { - t.HasComment("受试者 - 附加评估标准影像筛选检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArmEnum") - .HasColumnType("int"); - - b.Property("AssignTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("ReplacedSubjectUserId") - .HasColumnType("uniqueidentifier") - .HasComment("该属性有值 说明该医生被替换了 分配的时候 要过滤掉"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("ReplacedSubjectUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("SubjectUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("Auditor") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ChallengeState") - .HasColumnType("int"); - - b.Property("CheckBackTime") - .HasColumnType("datetime2"); - - b.Property("CheckChallengeState") - .HasColumnType("int"); - - b.Property("CheckPassedTime") - .HasColumnType("datetime2"); - - b.Property("CheckResult") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CheckState") - .HasColumnType("int") - .HasComment("核查状态"); - - b.Property("CheckTime") - .HasColumnType("datetime2"); - - b.Property("CheckUserId") - .HasColumnType("uniqueidentifier") - .HasComment("一致性核查人Id"); - - b.Property("CloseTheReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关闭一致性质疑原因"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentActionUserExpireTime") - .HasColumnType("datetime2"); - - b.Property("CurrentActionUserId") - .HasColumnType("uniqueidentifier") - .HasComment("当前质控领取人"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EarliestScanDate") - .HasColumnType("datetime2"); - - b.Property("ForwardState") - .HasColumnType("int"); - - b.Property("ForwardTime") - .HasColumnType("datetime2"); - - b.Property("ForwardUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InPlan") - .HasColumnType("bit"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsCheckBack") - .HasColumnType("bit") - .HasComment("是否一致性核查回退"); - - b.Property("IsConfirmedClinicalData") - .HasColumnType("bit") - .HasComment("是否确认了、签名了 临床数据完整性"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollmentConfirm") - .HasColumnType("bit"); - - b.Property("IsFinalVisit") - .HasColumnType("bit"); - - b.Property("IsLostVisit") - .HasColumnType("bit"); - - b.Property("IsPMBackOrReReading") - .HasColumnType("bit"); - - b.Property("IsQCConfirmedReupload") - .HasColumnType("bit"); - - b.Property("IsTake") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVisitTaskGenerated") - .HasColumnType("bit"); - - b.Property("LatestScanDate") - .HasColumnType("datetime2") - .HasComment("最晚拍片日期"); - - b.Property("ManualPassReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("通过原因"); - - b.Property("OutPlanPreviousVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("计划外上一访视"); - - b.Property("PDState") - .HasColumnType("int"); - - b.Property("PreliminaryAuditTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("单审通过人"); - - b.Property("ReadingStatus") - .HasColumnType("int"); - - b.Property("RequestBackState") - .HasColumnType("int"); - - b.Property("ReviewAuditTime") - .HasColumnType("datetime2"); - - b.Property("ReviewAuditUserId") - .HasColumnType("uniqueidentifier") - .HasComment("双审通过人"); - - b.Property("SVENDTC") - .HasColumnType("datetime2"); - - b.Property("SVSTDTC") - .HasColumnType("datetime2"); - - b.Property("SVUPDES") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubmitState") - .HasColumnType("int") - .HasComment("提交状态"); - - b.Property("SubmitTime") - .HasColumnType("datetime2"); - - b.Property("SubmitUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitExecuted") - .HasColumnType("int") - .HasComment("0 未执行 1 执行了 2 不可用"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitStageId") - .HasColumnType("uniqueidentifier") - .HasComment("访视计划Id,计划外没有"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("CurrentActionUserId"); - - b.HasIndex("ForwardUserId"); - - b.HasIndex("OutPlanPreviousVisitId"); - - b.HasIndex("PreliminaryAuditUserId"); - - b.HasIndex("ReviewAuditUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubmitUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("SubjectVisit", t => - { - t.HasComment("受试者访视"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Element") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Group") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAdd") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("ReplaceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TagDescriptionCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ValueRepresentation") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemAnonymization", t => - { - t.HasComment("系统 - 匿名化配置(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicDataTypeEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ValueCN") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.ToTable("SystemBasicData", t => - { - t.HasComment("系统 - 签名模板场景配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.ToTable("SystemClinicalQuestion", t => - { - t.HasComment("系统临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemClinicalTableQuestion", t => - { - t.HasComment("系统临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("SystemCriterionDictionaryCode", t => - { - t.HasComment("系统标准 - 字典配置 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocConfirmedUser", t => - { - t.HasComment("后台 - 系统文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("SystemDocumentId"); - - b.ToTable("SystemDocNeedConfirmedUserType", t => - { - t.HasComment("后台 - 系统文档需要签署用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DocUserSignType") - .HasColumnType("int"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.ToTable("SystemDocument", t => - { - t.HasComment("后台 - 系统签署文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableProjectEnum") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NoticeContent") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NoticeLevelEnum") - .HasColumnType("int"); - - b.Property("NoticeModeEnum") - .HasColumnType("int"); - - b.Property("NoticeStateEnum") - .HasColumnType("int"); - - b.Property("NoticeTypeEnum") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PublishedTime") - .HasColumnType("datetime2"); - - b.Property("PublishedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PublishedUserId"); - - b.ToTable("SystemNotice", t => - { - t.HasComment("后台 - 系统通知"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.ToTable("SystemNoticeUserRead", t => - { - t.HasComment("后台 - 系统通知用户读取记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("SystemNoticeId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SystemNoticeId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("SystemNoticeUserType", t => - { - t.HasComment("后台 - 系统通知用户类型配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EnrollId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsJudgeDoctor") - .HasColumnType("bit") - .HasComment("是否是裁判医生 裁判医生单独加入"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanReadingRatio") - .HasColumnType("int"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("EnrollId"); - - b.HasIndex("TrialId"); - - b.ToTable("TaskAllocationRule", t => - { - t.HasComment("项目阅片 - 分配规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindSubjectNumberOfPlaces") - .HasColumnType("int"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IntervalWeeks") - .HasColumnType("int"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsGenerateGlobalTask") - .HasColumnType("bit"); - - b.Property("IsHaveReadingPeriod") - .HasColumnType("bit"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanSubjectCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TaskConsistentRule", t => - { - t.HasComment("项目阅片 - 一致性分析生成任务配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InfluenceTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int") - .HasComment("对影响任务进行的操作"); - - b.Property("OriginalTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("InfluenceTaskId"); - - b.HasIndex("OriginalTaskId"); - - b.ToTable("TaskInfluence", t => - { - t.HasComment("项目阅片 - 退回重阅影响"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Anonymize") - .HasColumnType("bit"); - - b.Property("CPIStatus") - .HasColumnType("bit"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("FileSize") - .HasColumnType("bigint"); - - b.Property("FrameOfReferenceUID") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("HtmlPath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageColumns") - .HasColumnType("int"); - - b.Property("ImageRows") - .HasColumnType("int"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceNumber") - .HasColumnType("int"); - - b.Property("InstanceTime") - .HasColumnType("datetime2"); - - b.Property("NumberOfFrames") - .HasColumnType("int"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SliceLocation") - .HasColumnType("int"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SopInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WindowCenter") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("WindowWidth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SeriesId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskInstance", t => - { - t.HasComment("项目阅片 - 任务后处理Instance"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("AuditAdviceEnum") - .HasColumnType("int") - .HasComment("审核建议"); - - b.Property("AuditSignTime") - .HasColumnType("datetime2") - .HasComment("审核通过时间"); - - b.Property("AuditState") - .HasColumnType("int") - .HasComment("审核状态"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DialogCloseReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("对话关闭原因"); - - b.Property("DisagreeReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("不同意重阅原因"); - - b.Property("DoctorUserIdeaEnum") - .HasColumnType("int") - .HasComment("阅片人是否认同"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("文件名称"); - - b.Property("ImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("图片路径"); - - b.Property("IsApplyHeavyReading") - .HasColumnType("bit") - .HasComment("是否申请重阅"); - - b.Property("IsAutoGenerate") - .HasColumnType("bit"); - - b.Property("IsClosedDialog") - .HasColumnType("bit") - .HasComment("是否关闭对话"); - - b.Property("IsHaveQuestion") - .HasColumnType("bit") - .HasComment("是否有问题"); - - b.Property("IsInvalid") - .HasColumnType("bit") - .HasComment("无效的 为True无效"); - - b.Property("IsSendMessage") - .HasColumnType("bit") - .HasComment("是否发送消息"); - - b.Property("LatestReplyUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("MedicalDialogCloseEnum") - .HasColumnType("int") - .HasComment("医学审核对话关闭原因"); - - b.Property("MedicalManagerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PDRelationTaskIdListStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Questioning") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("质询问题"); - - b.Property("SaveConclusionTime") - .HasColumnType("datetime2") - .HasComment("保存结论时间"); - - b.Property("SaveQuestionTime") - .HasColumnType("datetime2") - .HasComment("保存问题的时间"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LatestReplyUserId"); - - b.HasIndex("MedicalManagerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskMedicalReview", t => - { - t.HasComment("项目阅片 - 医学审核"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PlanGlobalCount") - .HasColumnType("int"); - - b.Property("PlanJudgeCount") - .HasColumnType("int"); - - b.Property("PlanTumorCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.ToTable("TaskMedicalReviewRule", t => - { - t.HasComment("项目阅片 - 一致性分析规则"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ImageOrientationPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImagePositionPatient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageResizePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImagerPixelSpacing") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SequenceName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesNumber") - .HasColumnType("int"); - - b.Property("SeriesTime") - .HasColumnType("datetime2"); - - b.Property("SliceThickness") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("StudyId"); - - b.ToTable("TaskSeries", t => - { - t.HasComment("项目阅片 - 任务后上传序列"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Property("SeqId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionNumber") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AcquisitionTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartExamined") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("InstanceCount") - .HasColumnType("int"); - - b.Property("InstitutionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Modalities") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ModalityForEdit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientAge") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientBirthDate") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PatientSex") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SeriesCount") - .HasColumnType("int"); - - b.Property("StudyCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyInstanceUid") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TriggerTime") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("SeqId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("TaskStudy", t => - { - t.HasComment("项目阅片 - 任务后上传检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttendedReviewerTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindBaseLineName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindFollowUpPrefix") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BodyPartTypes") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CROId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChangeDefalutDays") - .HasColumnType("int"); - - b.Property("ClinicalInformationTransmissionEnum") - .HasColumnType("int") - .HasComment("临床信息传输 1:系统录入 2:系统录入+PDF 0:无"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeclarationTypes") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DigitPlaces") - .HasColumnType("int"); - - b.Property("EmailAuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码/授权码"); - - b.Property("EmailFromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件箱账号"); - - b.Property("EmailFromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发件人"); - - b.Property("EmailSMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("SMTP服务器"); - - b.Property("EmailSMTPServerPort") - .HasColumnType("int") - .HasComment("SMTP端口"); - - b.Property("ExpectedPatients") - .HasColumnType("int"); - - b.Property("Expedited") - .HasColumnType("int"); - - b.Property("ExperimentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("实验名称"); - - b.Property("GRRReviewers") - .HasColumnType("int"); - - b.Property("HeadPI") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("负责人PI"); - - b.Property("Indication") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCRAAuditClinicalInformation") - .HasColumnType("bit") - .HasComment("是否审核 临床信息"); - - b.Property("IsConfigureEmail") - .HasColumnType("bit") - .HasComment("是否配置过邮箱"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsEnrollementQualificationConfirm") - .HasColumnType("bit") - .HasComment("是否有 入组性确认"); - - b.Property("IsHaveFirstGiveMedicineDate") - .HasColumnType("bit") - .HasComment("是否 有基准时间(首次给药时间)"); - - b.Property("IsHaveSubjectAge") - .HasColumnType("bit") - .HasComment("是否有 受试者年龄"); - - b.Property("IsImageConsistencyVerification") - .HasColumnType("bit") - .HasComment("影像一致性核查"); - - b.Property("IsImageExport") - .HasColumnType("bit") - .HasComment("影像导出"); - - b.Property("IsImageReplicationAcrossTrial") - .HasColumnType("bit") - .HasComment("跨项目复制"); - - b.Property("IsNoticeSubjectCodeRule") - .HasColumnType("bit") - .HasComment("是否 提醒受试者编号规则"); - - b.Property("IsPACSConnect") - .HasColumnType("bit"); - - b.Property("IsPDProgressView") - .HasColumnType("bit") - .HasComment("PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"); - - b.Property("IsQCQuestionConfirmed") - .HasColumnType("bit"); - - b.Property("IsSubjectExpeditedView") - .HasColumnType("bit") - .HasComment("配置Suject Edit页面 是否显示 加急"); - - b.Property("IsSubjectSecondCodeView") - .HasColumnType("bit"); - - b.Property("IsSubjectSexView") - .HasColumnType("bit"); - - b.Property("IsTrialBasicLogicConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialPACSConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialProcessConfirmed") - .HasColumnType("bit"); - - b.Property("IsTrialStart") - .HasColumnType("bit"); - - b.Property("IsTrialUrgentConfirmed") - .HasColumnType("bit"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("IsVerifyVisitImageDate") - .HasColumnType("bit") - .HasComment("是否 验证拍片日期"); - - b.Property("MainResearchUnit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("主研单位"); - - b.Property("MessageFromClient") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("MessageFromClientName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Modalitys") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OutEnrollmentVisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("出组后计划外访视名称"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanSiteCount") - .HasColumnType("int"); - - b.Property("PlanVisitCount") - .HasColumnType("int"); - - b.Property("PreliminaryAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ProjectCycle") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QCProcessEnum") - .HasColumnType("int") - .HasComment("QC流程 0 不审,1 单审,2双审"); - - b.Property("QCQuestionConfirmedTime") - .HasColumnType("datetime2"); - - b.Property("QCQuestionConfirmedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReadingMode") - .HasColumnType("int") - .HasComment("阅片方式"); - - b.Property("ResearchProgramNo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("研究方案号"); - - b.Property("ReviewAuditReuploadText") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewModeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewProtocol") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ReviewProtocolName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SponsorId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectCodeRule") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("受试者编号具体规则"); - - b.Property("SyncClinicalDataTime") - .HasColumnType("datetime2") - .HasComment("同步临床数据时间"); - - b.Property("TimePointsPerPatient") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TotalReviewers") - .HasColumnType("int"); - - b.Property("TrialCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialEnrollStatus") - .HasColumnType("int") - .HasComment("入组那一块的状态"); - - b.Property("TrialExtraConfigJsonStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialFinishTime") - .HasColumnType("datetime2") - .HasComment("项目完成时间"); - - b.Property("TrialFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TrialObjectNameList") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("项目术语配置Json字符串"); - - b.Property("TrialStatusStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("启动状态"); - - b.Property("TrialType") - .HasColumnType("int") - .HasComment("项目类型 1 正式项目、0 非正式项目 2是培训项目"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanConfirmed") - .HasColumnType("bit"); - - b.Property("VitrualSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CROId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("IndicationTypeId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("QCQuestionConfirmedUserId"); - - b.HasIndex("ReviewModeId"); - - b.HasIndex("SponsorId"); - - b.ToTable("Trial", t => - { - t.HasComment("项目 - 项目基本信息与配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsHandAdd") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialBodyPart", t => - { - t.HasComment("项目 - 项目部位配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialClinicalDataSetId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialClinicalDataSetId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialClinicalDataSetCriterion", t => - { - t.HasComment("项目标准 - 临床数据配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalQuestionShowEnum") - .HasColumnType("int") - .HasComment("显示类型"); - - b.Property("ClinicalQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomCalculateMark") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier") - .HasComment("分组Id"); - - b.Property("IsCheckDate") - .HasColumnType("bit") - .HasComment("是否是检查日期"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("MaxQuestionCount") - .HasColumnType("int") - .HasComment("最大行数"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier") - .HasComment("父问题Id"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("父问题触发值"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemClinicalQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统临床问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("GroupId"); - - b.HasIndex("TrialClinicalId"); - - b.ToTable("TrialClinicalQuestion", t => - { - t.HasComment("项目临床数据问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalculateQuestions") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasComment("自定义计算问题"); - - b.Property("ClinicalCalculateMarkEnum") - .HasColumnType("int") - .HasComment("自定义计算标记"); - - b.Property("ClinicalOptionTypeEnum") - .HasColumnType("int") - .HasComment("临床数据选项类型(无,自定义)"); - - b.Property("ClinicalTableQuestionMarkEnum") - .HasColumnType("int") - .HasComment("问题标识"); - - b.Property("ClinicalTableQuestionType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("临床问题类型(分组,单选。)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("字典Code"); - - b.Property("DigitPlaces") - .HasColumnType("int") - .HasComment("小数点位数"); - - b.Property("IsRequired") - .HasColumnType("int") - .HasComment("是否必填"); - - b.Property("MaxAnswerLength") - .HasColumnType("int") - .HasComment("最大长度"); - - b.Property("QuestionEnName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题英文名称"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("外层问题Id"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("问题名称"); - - b.Property("RelevanceId") - .HasColumnType("uniqueidentifier") - .HasComment("关联ID"); - - b.Property("RelevanceValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("关联Value"); - - b.Property("ShowOrder") - .HasColumnType("int") - .HasComment("排序"); - - b.Property("SystemTableQuestionId") - .HasColumnType("uniqueidentifier") - .HasComment("系统表格问题Id"); - - b.Property("TrialClinicalId") - .HasColumnType("uniqueidentifier") - .HasComment("项目临床数据Id"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("自定义选项"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("单位"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialClinicalTableQuestion", t => - { - t.HasComment("项目临床表格问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdditionalAssessmentType") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("IsSelected") - .HasColumnType("bit"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialCriterionAdditionalAssessmentType", t => - { - t.HasComment("项目 - 项目标准附加评估配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialCriterionId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialCriterionId"); - - b.ToTable("TrialCriterionDictionaryCode"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CalledAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsTestOK") - .HasColumnType("bit"); - - b.Property("LatestTestTime") - .HasColumnType("datetime2"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Port") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialDicomAE", t => - { - t.HasComment("项目 - 项目DicomAE"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("KeyName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDictionary", t => - { - t.HasComment("项目 - 项目字典关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("ConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SignFirstViewTime") - .HasColumnType("datetime2"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ConfirmUserId"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocConfirmedUser", t => - { - t.HasComment("项目 - 项目文档签署记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedConfirmUserTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialDocumentId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("NeedConfirmUserTypeId"); - - b.HasIndex("TrialDocumentId"); - - b.ToTable("TrialDocNeedConfirmedUserType", t => - { - t.HasComment("项目 - 项目文档需要签署的用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FileTypeId") - .HasColumnType("uniqueidentifier") - .HasComment("需要确认的项目用户 通过TrialId 关联 用中间表过滤"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignViewMinimumMinutes") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("FileTypeId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialDocument", t => - { - t.HasComment("项目 - 项目文档"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialEmailBlackUser", t => - { - t.HasComment("项目 - 项目邮件用户黑名单"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AttachCNPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachNameCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AttachPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("AuthorizationCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BusinessLevelEnum") - .HasColumnType("int"); - - b.Property("BusinessModuleEnum") - .HasColumnType("int"); - - b.Property("BusinessScenarioEnum") - .HasColumnType("int"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionTypeEnum") - .HasColumnType("int"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailCron") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailDelaySeconds") - .HasColumnType("int") - .HasComment("邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"); - - b.Property("EmailHtmlContent") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailHtmlContentCN") - .HasColumnType("nvarchar(max)"); - - b.Property("EmailTopic") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTopicCN") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailTypeEnum") - .HasColumnType("int"); - - b.Property("EmailUrgentEnum") - .HasColumnType("int"); - - b.Property("FromEmail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FromName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsAutoSend") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsDistinguishCriteria") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsReturnRequired") - .HasColumnType("bit"); - - b.Property("SMTPServerAddress") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SMTPServerPort") - .HasColumnType("int"); - - b.Property("SysEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SysEmailNoticeConfigId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("TrialEmailNoticeConfig", t => - { - t.HasComment("项目 - 项目发送邮件配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailUserType") - .HasColumnType("int"); - - b.Property("TrialEmailNoticeConfigId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TrialEmailNoticeConfigId"); - - b.ToTable("TrialEmailNoticeUser", t => - { - t.HasComment("项目 - 项目邮件收发配置用户类型"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CriterionType") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EvaluationContent") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExperienceDataType") - .HasColumnType("int"); - - b.Property("IndicationEnum") - .HasColumnType("int"); - - b.Property("IndicationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("OtherCriterion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OtherStages") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PhaseId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitReadingCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PhaseId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExperience", t => - { - t.HasComment("医生 - 项目临床经历"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EvaluationCriteriaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialExperienceId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DoctorId"); - - b.HasIndex("EvaluationCriteriaId"); - - b.HasIndex("TrialExperienceId"); - - b.ToTable("TrialExperienceCriteria", t => - { - t.HasComment("医生 - 项目临床经历评估标准"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int") - .HasComment("邀请状态"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("IsSystemUser") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialExternalUser", t => - { - t.HasComment("项目 - 项目外部人员"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DicomStudyCount") - .HasColumnType("int"); - - b.Property("DownloadEndTime") - .HasColumnType("datetime2"); - - b.Property("DownloadStartTime") - .HasColumnType("datetime2"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ImageCount") - .HasColumnType("int"); - - b.Property("ImageSize") - .HasColumnType("bigint"); - - b.Property("ImageType") - .HasColumnType("int"); - - b.Property("IsSuccess") - .HasColumnType("bit"); - - b.Property("NoneDicomStudyCount") - .HasColumnType("int"); - - b.Property("SubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("一致性分析的就显示一致性分析的中心"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialImageDownload", t => - { - t.HasComment("项目 - 影像下载监控"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustmentMultiple") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsNewTrial") - .HasColumnType("bit") - .HasComment("是否有 为新项目"); - - b.Property("SowName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SowPath") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialAdditional") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialPaymentPrice", t => - { - t.HasComment("医生计费 - 项目支付配置"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsConfirm") - .HasColumnType("bit"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("LanguageType") - .HasColumnType("int") - .HasComment("语言类型"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentTriggerValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("下拉框、文本、单选、多选"); - - b.Property("TypeValue") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("ParentId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialQCQuestion", t => - { - t.HasComment("项目 - 质控问题"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Answer") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentQCEnum") - .HasColumnType("int") - .HasComment("1代表第一个人QC数据 2 代表第二个人QC数据"); - - b.Property("QCProcessEnum") - .HasColumnType("int"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialQCQuestionConfigureId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialQCQuestionConfigureId"); - - b.ToTable("TrialQCQuestionAnswer", t => - { - t.HasComment("项目 - 质控问题表单答案"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("AdjudicationIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Global") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("RefresherTraining") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Timepoint") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn24H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TimepointIn48H") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Training") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialRevenuesPrice", t => - { - t.HasComment("医生计费 - 项目工作量收入单价"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPriceVerification", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("bit"); - - b.Property("AdjudicationIn24H") - .HasColumnType("bit"); - - b.Property("AdjudicationIn48H") - .HasColumnType("bit"); - - b.Property("Downtime") - .HasColumnType("bit"); - - b.Property("Global") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("bit"); - - b.Property("ReviewerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Timepoint") - .HasColumnType("bit"); - - b.Property("TimepointIn24H") - .HasColumnType("bit"); - - b.Property("TimepointIn48H") - .HasColumnType("bit"); - - b.Property("Training") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkLoadDate") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("TrialRevenuesPriceVerification", t => - { - t.HasComment("医生计费 - 项目收入价格验证"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCompleted") - .HasColumnType("bit"); - - b.Property("SignCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SignCodeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SignText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialSign", t => - { - t.HasComment("项目 - 项目操作签名表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EnabledTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("SiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteAliasName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SiteId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialSite", t => - { - t.HasComment("项目 - 项目中心表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CallingAE") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("Port") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteDicomAE", t => - { - t.HasComment("项目 - 项目中心DicomAE表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EquipmentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ManufacturerName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Note") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Parameters") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("ScannerType") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("EquipmentTypeId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.ToTable("TrialSiteEquipmentSurvey", t => - { - t.HasComment("项目 - 项目中心调研设备表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageEngravingCycle") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("EfficacyEvaluatorType") - .HasColumnType("int"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsConfirmImagingTechnologist") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFollowStudyParameters") - .HasColumnType("bit"); - - b.Property("LatestBackReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotConfirmReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NotFollowReson") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PreliminaryTime") - .HasColumnType("datetime2"); - - b.Property("PreliminaryUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReviewerTime") - .HasColumnType("datetime2"); - - b.Property("ReviewerUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("PreliminaryUserId"); - - b.HasIndex("ReviewerUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.ToTable("TrialSiteSurvey", t => - { - t.HasComment("项目 - 项目中心调研表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialSiteUser", t => - { - t.HasComment("项目 - 项目中心用户关系表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("InviteState") - .HasColumnType("int"); - - b.Property("IsGenerateAccount") - .HasColumnType("bit"); - - b.Property("IsGenerateSuccess") - .HasColumnType("bit"); - - b.Property("IsHistoryUser") - .HasColumnType("bit"); - - b.Property("IsHistoryUserDeleted") - .HasColumnType("bit"); - - b.Property("IsHistoryUserOriginDeleted") - .HasColumnType("bit"); - - b.Property("IsJoin") - .HasColumnType("bit"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("SystemUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialRoleCode") - .HasColumnType("int"); - - b.Property("TrialSiteSurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialSiteSurveyId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("TrialSiteUserSurvey", t => - { - t.HasComment("项目 - 项目中心调研用户表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("NowState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OriginState") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStateChange", t => - { - t.HasComment("项目 - 项目状态变更记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Memo") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OptUserType") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("TrialStatus", t => - { - t.HasComment("项目 - 入组流程记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("RemoveTime") - .HasColumnType("datetime2"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.HasIndex("UserId"); - - b.ToTable("TrialUser", t => - { - t.HasComment("运维人员与项目关联关系表 - 实体"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VirturalSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("TrialVirtualSiteCodeUpdate", t => - { - t.HasComment("项目 - 虚拟中心编号更新记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_IRECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_IRECIST1Point1", t => - { - t.HasComment("IRECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1", t => - { - t.HasComment("RECIST1Point1肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TumorAssessment_RECIST1Point1BM", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("NewLesion") - .HasColumnType("int") - .HasComment("新病灶"); - - b.Property("NonTargetLesions") - .HasColumnType("int") - .HasComment("非靶病灶"); - - b.Property("OverallEfficacy") - .HasColumnType("int") - .HasComment("整体疗效"); - - b.Property("TargetLesion") - .HasColumnType("int") - .HasComment("靶病灶"); - - b.HasKey("Id"); - - b.ToTable("TumorAssessment_RECIST1Point1BM", t => - { - t.HasComment("RECIST1Point1BM肿瘤评估(系统标准)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoCutNextTask") - .HasColumnType("bit") - .HasComment("自动切换下一个任务"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("DepartmentName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier") - .HasComment("医生生成账号后,会有值"); - - b.Property("EMail") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("EmailToken") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsFirstAdd") - .HasColumnType("bit") - .HasComment("首次登录需要修改密码"); - - b.Property("IsTestUser") - .HasColumnType("bit"); - - b.Property("IsZhiZhun") - .HasColumnType("bit") - .HasComment("内部用户 外部用户"); - - b.Property("LastChangePassWordTime") - .HasColumnType("datetime2") - .HasComment("上一次修改密码的时间"); - - b.Property("LastLoginIP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PasswordChanged") - .HasColumnType("bit"); - - b.Property("Phone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Sex") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SuperAdmin") - .HasColumnType("bit"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorId") - .IsUnique() - .HasFilter("[DoctorId] IS NOT NULL"); - - b.HasIndex("UserTypeId"); - - b.ToTable("User", t => - { - t.HasComment("后台 - 系统账户"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionDescription") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("QuestionType") - .HasColumnType("int"); - - b.Property("ScreenshotListStr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - - b.HasIndex("VisitTaskId"); - - b.ToTable("UserFeedBack", t => - { - t.HasComment("后台 - 用户反馈"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IPRegion") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginFaildName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginPassword") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("LoginUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("OptType") - .HasColumnType("int"); - - b.Property("OptUserId") - .HasColumnType("uniqueidentifier") - .HasComment("被操作的人,自己操作的就是自己"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("LoginUserId"); - - b.HasIndex("OptUserId"); - - b.ToTable("UserLog", t => - { - t.HasComment("后台 - 用户账户操作日志"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("PassWord") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("密码"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasComment("用户Id"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserPassWordLog", t => - { - t.HasComment("后台 - 用户修改密码"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsEnable") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("PermissionStr") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeEnum") - .HasColumnType("int"); - - b.Property("UserTypeName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserTypeShortName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.ToTable("UserType", t => - { - t.HasComment("后台 - 系统用户类型 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DictionaryId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("DictionaryId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeGroup", t => - { - t.HasComment("后台 - 用户类型组(需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("MenuId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserTypeId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MenuId"); - - b.HasIndex("UserTypeId"); - - b.ToTable("UserTypeMenu", t => - { - t.HasComment("后台 - 系统用户类型菜单中间关系表 (需要同步)"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsPitchOn") - .HasColumnType("bit") - .HasComment("是否为默认"); - - b.Property("ShowOrder") - .HasColumnType("int"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WL") - .HasColumnType("int"); - - b.Property("WW") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("UserWLTemplate", t => - { - t.HasComment("用户配置 - WL模板"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("Vacation", t => - { - t.HasComment("医生 - 假期安排"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("验证码"); - - b.Property("CodeType") - .HasColumnType("int") - .HasComment("什么类型的验证码 邮箱|手机"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("EmailOrPhone") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("发送的邮箱或者手机"); - - b.Property("ExpirationTime") - .HasColumnType("datetime2") - .HasComment("过期时间"); - - b.Property("HasSend") - .HasColumnType("bit"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VerificationCode", t => - { - t.HasComment("后台 - 验证码记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("InconsistentCount") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VisitPlanInfluenceStat", t => - { - t.HasComment("项目配置 - 访视计划调整不一致数量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("HistoryWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsDicomStudy") - .HasColumnType("bit"); - - b.Property("IsOverWindowNowNotOverWindow") - .HasColumnType("bit"); - - b.Property("Modality") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("NowWindow") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StudyId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudyTime") - .HasColumnType("datetime2"); - - b.Property("SubjectVisitId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitPlanInfluenceStatId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("SubjectVisitId"); - - b.HasIndex("VisitPlanInfluenceStatId"); - - b.ToTable("VisitPlanInfluenceStudy", t => - { - t.HasComment("项目配置 - 访视计划调整影像检查"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("IsBaseLine") - .HasColumnType("bit"); - - b.Property("IsConfirmed") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("IsHaveFirstConfirmed") - .HasColumnType("bit"); - - b.Property("NeedGlobal") - .HasColumnType("bit"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitDay") - .HasColumnType("int"); - - b.Property("VisitName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("VisitNum") - .HasPrecision(18, 1) - .HasColumnType("decimal(18,1)"); - - b.Property("VisitWindowLeft") - .HasColumnType("int"); - - b.Property("VisitWindowRight") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitStage", t => - { - t.HasComment("项目配置 - 访视记录"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AllocateTime") - .HasColumnType("datetime2") - .HasComment("分配时间"); - - b.Property("ArmEnum") - .HasColumnType("int") - .HasComment("0 代表 单重阅片 产生的任务 否则就是双重 任务 1 任务 2"); - - b.Property("BeforeConvertedTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("转换之前的任务Id(转化的任务才有该值)"); - - b.Property("BlindSubjectCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("BlindTrialSiteCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Code") - .HasColumnType("int"); - - b.Property("ConsistentAnalysisOriginalTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("针对产生的一致性任务而言,这个字段存储的是原始任务"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DoctorUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpetidEmailNoticeTime") - .HasColumnType("datetime2") - .HasComment("通知IR加急阅片时间"); - - b.Property("FirstReadingTime") - .HasColumnType("datetime2") - .HasComment("首次阅片时间"); - - b.Property("ImageStudyState") - .HasColumnType("int"); - - b.Property("IsAnalysisCreate") - .HasColumnType("bit") - .HasComment("是否是一致性分析产生"); - - b.Property("IsAnalysisDiffToOriginalData") - .HasColumnType("bit") - .HasComment("阅片结果是否和原数据有差异"); - - b.Property("IsCanEditUrgentState") - .HasColumnType("bit") - .HasComment("是否和编辑加急状态"); - - b.Property("IsChangeTumorEvaluate") - .HasColumnType("bit") - .HasComment("是否修改了整体肿瘤评估"); - - b.Property("IsClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据是否签名"); - - b.Property("IsFrontTaskNeedSignButNotSign") - .HasColumnType("bit") - .HasComment("前序任务需要签名 但是未签名"); - - b.Property("IsGlobalHaveUpdate") - .HasColumnType("bit") - .HasComment("全局是否有更新"); - - b.Property("IsGroupDiffArm1") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm1是否有差异"); - - b.Property("IsGroupDiffArm2") - .HasColumnType("bit") - .HasComment("组件一致性和原Arm2是否有差异"); - - b.Property("IsHistoryConvertedTask") - .HasColumnType("bit") - .HasComment("重阅重置任务的 标注是转化之前的 还是转化之后的"); - - b.Property("IsNeedClinicalDataSign") - .HasColumnType("bit") - .HasComment("临床数据"); - - b.Property("IsPMSetBack") - .HasColumnType("bit") - .HasComment("PM 对该任务进行了回退 影响的任务不设置"); - - b.Property("IsReReadingCreate") - .HasColumnType("bit") - .HasComment("是否是重阅产生的,方便过滤数据"); - - b.Property("IsReadClinicalData") - .HasColumnType("bit") - .HasComment("IR是否阅读临床数据"); - - b.Property("IsSelfAnalysis") - .HasColumnType("bit") - .HasComment("是否是自身一致性"); - - b.Property("IsUrgent") - .HasColumnType("bit"); - - b.Property("JudgeResultImagePath") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("裁判结果的图片路径"); - - b.Property("JudgeResultRemark") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("裁判结果的备注"); - - b.Property("JudgeResultTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)"); - - b.Property("JudgeVisitTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("在访视或者全局任务上记录 裁判任务的Id"); - - b.Property("PastResultTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("既往任务Id 不包括自己"); - - b.Property("ReReadingApplyState") - .HasColumnType("int") - .HasComment("重阅状态"); - - b.Property("ReadingCategory") - .HasColumnType("int") - .HasComment("任务类型"); - - b.Property("ReadingTaskState") - .HasColumnType("int") - .HasComment("任务阅片状态"); - - b.Property("RelatedVisitTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); - - b.Property("ReportRelatedTaskIds") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("报告任务关系 包含冻结"); - - b.Property("SignTime") - .HasColumnType("datetime2") - .HasComment("签名时间"); - - b.Property("SouceReadModuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceSubjectVisitId") - .HasColumnType("uniqueidentifier") - .HasComment("任务来源访视Id 方便回更访视读片状态"); - - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("SuggesteFinishedTime") - .HasColumnType("datetime2"); - - b.Property("TaskAllocationState") - .HasColumnType("int") - .HasComment("分配状态"); - - b.Property("TaskBlindName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskCode") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("TaskUrgentRemake") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)") - .HasComment("任务加急类型"); - - b.Property("TaskUrgentType") - .HasColumnType("int") - .HasComment("加急类型"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialReadingCriterionId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("VisitTaskNum") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasComment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("DoctorUserId"); - - b.HasIndex("JudgeResultTaskId"); - - b.HasIndex("JudgeVisitTaskId"); - - b.HasIndex("SouceReadModuleId"); - - b.HasIndex("SourceSubjectVisitId"); - - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialReadingCriterionId"); - - b.ToTable("VisitTask", t => - { - t.HasComment("项目阅片 - 阅片任务表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsCopyFollowForms") - .HasColumnType("bit") - .HasComment("仅仅包括全局和访视"); - - b.Property("IsCopyOrigenalForms") - .HasColumnType("bit"); - - b.Property("NewReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅申请 产生的新任务Id"); - - b.Property("OriginalReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("重阅原始任务Id 重阅会产生新的任务"); - - b.Property("RequestReReadingConfirmUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RequestReReadingReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingRejectReason") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("RequestReReadingResultEnum") - .HasColumnType("int"); - - b.Property("RequestReReadingTime") - .HasColumnType("datetime2"); - - b.Property("RequestReReadingType") - .HasColumnType("int") - .HasComment("申请回退类型"); - - b.Property("RequestReReadingUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RootReReadingTaskId") - .HasColumnType("uniqueidentifier") - .HasComment("产生重阅的根任务Id"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("NewReReadingTaskId"); - - b.HasIndex("OriginalReReadingTaskId"); - - b.HasIndex("RequestReReadingConfirmUserId"); - - b.HasIndex("RequestReReadingUserId"); - - b.HasIndex("RootReReadingTaskId"); - - b.HasIndex("TrialId"); - - b.ToTable("VisitTaskReReading", t => - { - t.HasComment("重阅申请流程记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("Max") - .HasColumnType("int"); - - b.Property("Min") - .HasColumnType("int"); - - b.Property("Price") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.ToTable("VolumeReward", t => - { - t.HasComment("医生计费 - 奖励"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjudication") - .HasColumnType("int"); - - b.Property("AdjudicationIn24H") - .HasColumnType("int"); - - b.Property("AdjudicationIn48H") - .HasColumnType("int"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreateUserType") - .HasColumnType("int"); - - b.Property("DataFrom") - .HasColumnType("int"); - - b.Property("DoctorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Downtime") - .HasColumnType("int"); - - b.Property("Global") - .HasColumnType("int"); - - b.Property("IsLock") - .HasColumnType("bit"); - - b.Property("RefresherTraining") - .HasColumnType("int"); - - b.Property("Timepoint") - .HasColumnType("int"); - - b.Property("TimepointIn24H") - .HasColumnType("int"); - - b.Property("TimepointIn48H") - .HasColumnType("int"); - - b.Property("Training") - .HasColumnType("int"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkTime") - .HasColumnType("datetime2"); - - b.Property("YearMonth") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.HasKey("Id"); - - b.HasIndex("CreateUserId"); - - b.HasIndex("TrialId"); - - b.ToTable("DoctorWorkload", t => - { - t.HasComment("医生计费 - 工作量记录表"); - }); - }); - - modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("DateTimeList") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("StringList") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TestEnumList") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TestJsonObjectLsit") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("TestLength"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Attachment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("AttachmentList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CheckChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("CheckChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataSystemSet", "ClinicalDataSystemSet") - .WithMany() - .HasForeignKey("SystemClinicalDataSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalDataTrialSetList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataSystemSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalForm", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalFormList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalTableAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalAnswerRowInfo", "ClinicalAnswerRowInfo") - .WithMany() - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalAnswerRowInfo"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.CriterionNidusTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DataInspection", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "DicomSerie") - .WithMany("DicomInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomSerie"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("StudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("StudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("StudyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ConfigDictionary") - .WithMany() - .HasForeignKey("ConfigTypeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Parent") - .WithMany("ChildList") - .HasForeignKey("ParentId"); - - b.Navigation("ConfigDictionary"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany("DoctorList") - .HasForeignKey("HospitalId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Position") - .WithMany() - .HasForeignKey("PositionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Rank") - .WithMany() - .HasForeignKey("RankId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Speciality") - .WithMany() - .HasForeignKey("SpecialityId"); - - b.Navigation("CreateUser"); - - b.Navigation("Department"); - - b.Navigation("Hospital"); - - b.Navigation("Position"); - - b.Navigation("Rank"); - - b.Navigation("Speciality"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorCriterionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("CriterionFileList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("DoctorDicRelationList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Doctor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "EmailNoticeConfig") - .WithMany("EmailNoticeUserTypeList") - .HasForeignKey("EmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany("EnrollList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("EnrollList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("DoctorUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor") - .WithMany() - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialStatusDetail", "TrialDetail") - .WithMany("IntoGroupDetails") - .HasForeignKey("TrialDetailId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Doctor"); - - b.Navigation("TrialDetail"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCategory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCategoryList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EnrollReadingCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany("EnrollReadingCriteriaList") - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Enroll"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EventStoreRecord", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExchangeRate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ExploreRecommend", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.FrontAuditConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany() - .HasForeignKey("SiteId"); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.InspectionFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Internationalization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.PublishLog", "PublishLog") - .WithMany() - .HasForeignKey("PublishLogId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishLog"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("NoneDicomStudyList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudyFile", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany("NoneDicomFileList") - .HasForeignKey("NoneDicomStudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "OriginNoneDicomStudy") - .WithMany("TaskNoneDicomFileList") - .HasForeignKey("OriginNoneDicomStudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskNoneDicomStudyFileList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("OriginNoneDicomStudy"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.OrganTrialInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OrganInfo"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentAdjustment", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PaymentDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Postgraduate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousHistory", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousHistoryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousOther", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousOtherList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("PreviousPDFList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PreviousSurgery", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("PreviousSurgeryList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.PublishLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("QCChallengeList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallengeDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCChallenge", "QCChallenge") - .WithMany("DialogList") - .HasForeignKey("QCChallengeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", null) - .WithMany("QCChallengeDialogList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("QCChallenge"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.QCQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.RankPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany() - .HasForeignKey("ReadingPeriodSetId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadModuleList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadModuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModuleCriterionFrom", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalForm", "ClinicalForm") - .WithMany() - .HasForeignKey("ClinicalFormId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", null) - .WithMany("ReadModuleCriterionFromList") - .HasForeignKey("ReadModuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalForm"); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("ClinicalDataList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ReadingClinicalDataList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingClinicalData", "ReadingClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany() - .HasForeignKey("ClinicalDataTrialSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("ReadingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("ReadingConsistentClinicalDataList") - .HasForeignKey("StudyId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("ReadModule"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalDataPDF", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", "ReadingConsistentClinicalData") - .WithMany("ReadingClinicalDataPDFList") - .HasForeignKey("ReadingConsistentClinicalDataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingConsistentClinicalData"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCustomTag", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingGlobalTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "GlobalVisitTask") - .WithMany("GlobalVisitResultList") - .HasForeignKey("GlobalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("QuestionId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("GlobalVisitTask"); - - b.Navigation("TrialReadingQuestion"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicalReviewDialog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany("ReadingMedicalReviewDialogList") - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskMedicalReview", "TaskMedicalReview") - .WithMany() - .HasForeignKey("TaskMedicalReviewId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskMedicalReview"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineSystemQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingMedicineTrialQuestion", "ParentQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingOncologyTaskInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OncologyVisitTask") - .WithMany() - .HasForeignKey("OncologyTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("OncologyVisitTask"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodPlan", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodPlanList") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("SubjectVisit"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitStage", "VisitStage") - .WithMany() - .HasForeignKey("VisitStageId"); - - b.Navigation("CreateUser"); - - b.Navigation("VisitStage"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingPeriodSet", "ReadingPeriodSet") - .WithMany("ReadingPeriodSites") - .HasForeignKey("ReadingPeriodSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingPeriodSet"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialReadingCriterionList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ParentReadingQuestionSystem") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", "ReadingQuestionCriterionSystem") - .WithMany("ReadingQuestionSystemList") - .HasForeignKey("ReadingQuestionCriterionSystemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "RelevanceReadingQuestionSystem") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionSystem"); - - b.Navigation("ReadingQuestionCriterionSystem"); - - b.Navigation("RelevanceReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "GroupInfo") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ParentReadingQuestionTrial") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingCriterionPage", "ReadingCriterionPage") - .WithMany("ReadingQuestionList") - .HasForeignKey("ReadingCriterionPageId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "ReadingQuestionCriterionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionCriterionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "RelevanceReadingQuestionTrial") - .WithMany() - .HasForeignKey("RelevanceId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupInfo"); - - b.Navigation("ParentReadingQuestionTrial"); - - b.Navigation("ReadingCriterionPage"); - - b.Navigation("ReadingQuestionCriterionTrial"); - - b.Navigation("RelevanceReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance") - .WithMany("ReadingTableAnswerRowInfoList") - .HasForeignKey("InstanceId") - .HasPrincipalKey("Id"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "MergeRow") - .WithMany() - .HasForeignKey("MergeRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.OrganInfo", "OrganInfo") - .WithMany() - .HasForeignKey("OrganInfoId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "SplitRow") - .WithMany() - .HasForeignKey("SplitRowId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("LesionList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Instance"); - - b.Navigation("MergeRow"); - - b.Navigation("OrganInfo"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("SplitRow"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", "Lesion") - .WithMany("LesionAnswerList") - .HasForeignKey("RowId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "ReadingTableQuestionTrial") - .WithMany() - .HasForeignKey("TableQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Lesion"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("ReadingTableQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionSystem", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", "ReadingQuestionSystem") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionSystem"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingTableQuestionTrial", "DependParentQuestion") - .WithMany() - .HasForeignKey("DependParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany("ReadingTableQuestionTrialList") - .HasForeignKey("ReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DependParentQuestion"); - - b.Navigation("ReadingQuestionTrial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("ReadingQuestionTrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("ReadingTaskQuestionAnswerList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskQuestionMark", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ReadingQuestionTrial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTaskRelation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany() - .HasForeignKey("TaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTrialCriterionDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("CriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Dictionary"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReviewerPayInformation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPImageUpload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPSeries", "SCPSeries") - .WithMany("SCPInstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPSeries"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SCPStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") - .WithMany("SCPStudyList") - .HasForeignKey("PatientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Patient"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Hospital", "Hospital") - .WithMany() - .HasForeignKey("HospitalId"); - - b.Navigation("CreateUser"); - - b.Navigation("Hospital"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Sponsor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.StudyMonitor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy") - .WithMany("DicomStudyMonitorList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany() - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DicomStudy"); - - b.Navigation("NoneDicomStudy"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TaskStudy"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "FinalSubjectVisit") - .WithMany() - .HasForeignKey("FinalSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "LatestSubjectVisit") - .WithMany() - .HasForeignKey("LatestSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FinalSubjectVisit"); - - b.Navigation("LatestSubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectAdditionalEvaluationResult", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectAdditionalEvaluationResult") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "TrialReadingQuestion") - .WithMany() - .HasForeignKey("TrialReadingQuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingQuestion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCanceDoctor", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectCanceDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "subject") - .WithMany("SubjectCriteriaEvaluationList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - - b.Navigation("subject"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", null) - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany("SubjectCriteriaEvaluationVisitFilterList") - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluationVisitStudyFilter", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomSeries", "Series") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "Study") - .WithMany("SubjectCriteriaEvaluationVisitStudyFilterList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Series"); - - b.Navigation("Study"); - - b.Navigation("SubjectVisit"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectUser", "ReplacedSubjectUser") - .WithMany("EarlierSubjectUserList") - .HasForeignKey("ReplacedSubjectUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectDoctorList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectDoctorUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("ReplacedSubjectUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CurrentActionUser") - .WithMany() - .HasForeignKey("CurrentActionUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ForwardUser") - .WithMany() - .HasForeignKey("ForwardUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "OutPlanPreviousVisit") - .WithMany() - .HasForeignKey("OutPlanPreviousVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryAuditUser") - .WithMany() - .HasForeignKey("PreliminaryAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewAuditUser") - .WithMany() - .HasForeignKey("ReviewAuditUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "SubmitUser") - .WithMany() - .HasForeignKey("SubmitUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("SubjectVisitList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("CurrentActionUser"); - - b.Navigation("ForwardUser"); - - b.Navigation("OutPlanPreviousVisit"); - - b.Navigation("PreliminaryAuditUser"); - - b.Navigation("ReviewAuditUser"); - - b.Navigation("Subject"); - - b.Navigation("SubmitUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemAnonymization", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemBasicData", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemBasicData", "Parent") - .WithMany() - .HasForeignKey("ParentId"); - - b.Navigation("CreateUser"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "ConfirmUser") - .WithMany("SystemDocConfirmedList") - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("SystemDocConfirmedUserList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ConfirmUser"); - - b.Navigation("CreateUser"); - - b.Navigation("SystemDocument"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("SystemDocNeedConfirmedUserTypeList") - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("SystemDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SystemDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PublishedUser") - .WithMany() - .HasForeignKey("PublishedUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("PublishedUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserRead", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserReadList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNoticeUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SystemNotice", null) - .WithMany("NoticeUserTypeList") - .HasForeignKey("SystemNoticeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "NoticeUserType") - .WithMany() - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NoticeUserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskAllocationRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Enroll", "Enroll") - .WithMany() - .HasForeignKey("EnrollId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("Enroll"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskConsistentRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskConsistentRuleList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInfluence", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "InfluenceTask") - .WithMany() - .HasForeignKey("InfluenceTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalTask") - .WithMany("TaskInfluenceList") - .HasForeignKey("OriginalTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("InfluenceTask"); - - b.Navigation("OriginalTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskSeries", "TaskSeries") - .WithMany("InstanceList") - .HasForeignKey("SeriesId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("InstanceList") - .HasForeignKey("StudyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskSeries"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") - .WithMany() - .HasForeignKey("LatestReplyUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "MedicalManagerUser") - .WithMany() - .HasForeignKey("MedicalManagerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskMedicalReviewList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("LatestReplyUser"); - - b.Navigation("MedicalManagerUser"); - - b.Navigation("Trial"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReviewRule", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany() - .HasForeignKey("DoctorUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TaskStudy", "TaskStudy") - .WithMany("SeriesList") - .HasForeignKey("StudyId") - .HasPrincipalKey("Id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TaskStudy"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("TaskStudyList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("TaskStudyList") - .HasForeignKey("VisitTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "IndicationType") - .WithMany() - .HasForeignKey("IndicationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "QCQuestionConfirmedUser") - .WithMany() - .HasForeignKey("QCQuestionConfirmedUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "ReviewMode") - .WithMany() - .HasForeignKey("ReviewModeId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); - - b.Navigation("CRO"); - - b.Navigation("CreateUser"); - - b.Navigation("IndicationType"); - - b.Navigation("Phase"); - - b.Navigation("QCQuestionConfirmedUser"); - - b.Navigation("ReviewMode"); - - b.Navigation("Sponsor"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialBodyPartList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalDataSetCriterion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "TrialClinicalDataSet") - .WithMany("TrialClinicalDataSetCriteriaList") - .HasForeignKey("TrialClinicalDataSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialClinicalDataSetCriterionList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialClinicalDataSet"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialClinicalQuestion", "GroupQuestin") - .WithMany() - .HasForeignKey("GroupId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", "ClinicalDataTrialSet") - .WithMany("TrialClinicalQuestionList") - .HasForeignKey("TrialClinicalId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ClinicalDataTrialSet"); - - b.Navigation("CreateUser"); - - b.Navigation("GroupQuestin"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialClinicalTableQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionAdditionalAssessmentType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("TrialCriterionAdditionalAssessmentTypeList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialCriterionDictionaryCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDictionary", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Dictionary") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDicList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Dictionary"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocConfirmedUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("ConfirmUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("TrialDocConfirmedUserList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialDocument"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocNeedConfirmedUserType", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("NeedConfirmUserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialDocument", "TrialDocument") - .WithMany("NeedConfirmedUserTypeList") - .HasForeignKey("TrialDocumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialDocument"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "FileType") - .WithMany() - .HasForeignKey("FileTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialDocumentList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("FileType"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailBlackUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailBlackUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.EmailNoticeConfig", "SysEmailNoticeConfig") - .WithMany("TrialEmailNoticeConfigList") - .HasForeignKey("SysEmailNoticeConfigId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany() - .HasForeignKey("TrialReadingCriterionId"); - - b.Navigation("CreateUser"); - - b.Navigation("SysEmailNoticeConfig"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", "TrialEmailNoticeConfig") - .WithMany("TrialEmailNoticeUserList") - .HasForeignKey("TrialEmailNoticeConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TrialEmailNoticeConfig"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Phase") - .WithMany() - .HasForeignKey("PhaseId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId"); - - b.Navigation("CreateUser"); - - b.Navigation("Phase"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperienceCriteria", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithMany("TrialExperienceCriteriaList") - .HasForeignKey("DoctorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EvaluationCriteria") - .WithMany() - .HasForeignKey("EvaluationCriteriaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialExperience", null) - .WithMany("ExperienceCriteriaList") - .HasForeignKey("TrialExperienceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("EvaluationCriteria"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExternalUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialImageDownload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialPaymentPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "ParentQCQuestion") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("ParentQCQuestion"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure") - .WithMany("TrialQCQuestionAnswerList") - .HasForeignKey("TrialQCQuestionConfigureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialQCQuestionConfigure"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialRevenuesPrice", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSign", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Site", "Site") - .WithMany("TrialSiteList") - .HasForeignKey("SiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Site"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteDicomAE", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteDicomAEList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteEquipmentSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "EquipmentType") - .WithMany() - .HasForeignKey("EquipmentTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteEquipmentSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("EquipmentType"); - - b.Navigation("TrialSiteSurvey"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "PreliminaryUser") - .WithMany() - .HasForeignKey("PreliminaryUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "ReviewerUser") - .WithMany() - .HasForeignKey("ReviewerUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("TrialSiteSurveyList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("PreliminaryUser"); - - b.Navigation("ReviewerUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialSiteUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany("CRCUserList") - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteUserSurvey", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSiteSurvey", "TrialSiteSurvey") - .WithMany("TrialSiteUserSurveyList") - .HasForeignKey("TrialSiteSurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany() - .HasForeignKey("UserTypeId"); - - b.Navigation("CreateUser"); - - b.Navigation("TrialSiteSurvey"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStateChange", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialStateChangeList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("ClinicalTrialProjectDetails") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialUser", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("TrialUserList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "User") - .WithMany("UserTrials") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialVirtualSiteCodeUpdate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Doctor", null) - .WithOne("User") - .HasForeignKey("IRaCIS.Core.Domain.Models.User", "DoctorId"); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserTypeRole") - .WithMany("UserList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("UserTypeRole"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserFeedBack", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("UserFeedBackList") - .HasForeignKey("TrialId"); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") - .WithMany("UserFeedBackList") - .HasForeignKey("VisitTaskId"); - - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("SubjectVisit"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); - - b.Navigation("VisitTask"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "LoginUser") - .WithMany() - .HasForeignKey("LoginUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "OptUser") - .WithMany() - .HasForeignKey("OptUserId"); - - b.Navigation("CreateUser"); - - b.Navigation("LoginUser"); - - b.Navigation("OptUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserPassWordLog", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeGroup", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Dictionary", "Group") - .WithMany() - .HasForeignKey("DictionaryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeGroupList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Group"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserTypeMenu", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.Menu", "Menu") - .WithMany("UserTypeMenuList") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.UserType", "UserType") - .WithMany("UserTypeMenuList") - .HasForeignKey("UserTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Menu"); - - b.Navigation("UserType"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserWLTemplate", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Vacation", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VerificationCode", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStudy", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") - .WithMany() - .HasForeignKey("SubjectVisitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", "VisitPlanInfluenceStat") - .WithMany("InfluenceStudyList") - .HasForeignKey("VisitPlanInfluenceStatId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("SubjectVisit"); - - b.Navigation("VisitPlanInfluenceStat"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitStage", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "DoctorUser") - .WithMany("VisitTaskList") - .HasForeignKey("DoctorUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") - .WithMany() - .HasForeignKey("JudgeResultTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeVisitTask") - .WithMany("JudgeVisitList") - .HasForeignKey("JudgeVisitTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") - .WithMany("ModuleTaskList") - .HasForeignKey("SouceReadModuleId"); - - b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SourceSubjectVisit") - .WithMany("VisitTaskList") - .HasForeignKey("SourceSubjectVisitId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany("SubjectVisitTaskList") - .HasForeignKey("SubjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", "TrialReadingCriterion") - .WithMany("VisitTaskList") - .HasForeignKey("TrialReadingCriterionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("DoctorUser"); - - b.Navigation("JudgeResultTask"); - - b.Navigation("JudgeVisitTask"); - - b.Navigation("ReadModule"); - - b.Navigation("SourceSubjectVisit"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialReadingCriterion"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTaskReReading", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "NewReReadingTask") - .WithMany() - .HasForeignKey("NewReReadingTaskId"); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "OriginalReReadingTask") - .WithMany() - .HasForeignKey("OriginalReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingConfirmUser") - .WithMany() - .HasForeignKey("RequestReReadingConfirmUserId"); - - b.HasOne("IRaCIS.Core.Domain.Models.User", "RequestReReadingUser") - .WithMany() - .HasForeignKey("RequestReReadingUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "RootReReadingTask") - .WithMany() - .HasForeignKey("RootReReadingTaskId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany("VisitTaskReReadingList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - - b.Navigation("NewReReadingTask"); - - b.Navigation("OriginalReReadingTask"); - - b.Navigation("RequestReReadingConfirmUser"); - - b.Navigation("RequestReReadingUser"); - - b.Navigation("RootReReadingTask"); - - b.Navigation("Trial"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VolumeReward", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Workload", b => - { - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") - .WithMany() - .HasForeignKey("CreateUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", null) - .WithMany("WorkloadList") - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("CreateUser"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ClinicalDataTrialSet", b => - { - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("TrialClinicalDataSetCriteriaList"); - - b.Navigation("TrialClinicalQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => - { - b.Navigation("ReadingTableAnswerRowInfoList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b => - { - b.Navigation("DicomInstanceList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b => - { - b.Navigation("DicomStudyMonitorList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("ReadingConsistentClinicalDataList"); - - b.Navigation("SeriesList"); - - b.Navigation("SubjectCriteriaEvaluationVisitStudyFilterList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Dictionary", b => - { - b.Navigation("ChildList"); - - b.Navigation("DoctorDicRelationList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Doctor", b => - { - b.Navigation("AttachmentList"); - - b.Navigation("CriterionFileList"); - - b.Navigation("DoctorDicRelationList"); - - b.Navigation("EnrollList"); - - b.Navigation("TrialExperienceCriteriaList"); - - b.Navigation("User") - .IsRequired(); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailNoticeConfig", b => - { - b.Navigation("EmailNoticeUserTypeList"); - - b.Navigation("TrialEmailNoticeConfigList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Enroll", b => - { - b.Navigation("EnrollReadingCategoryList"); - - b.Navigation("EnrollReadingCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b => - { - b.Navigation("DoctorList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Menu", b => - { - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.NoneDicomStudy", b => - { - b.Navigation("NoneDicomFileList"); - - b.Navigation("TaskNoneDicomFileList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.QCChallenge", b => - { - b.Navigation("DialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadModule", b => - { - b.Navigation("ModuleTaskList"); - - b.Navigation("ReadModuleCriterionFromList"); - - b.Navigation("ReadingClinicalDataList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingConsistentClinicalData", b => - { - b.Navigation("ReadingClinicalDataPDFList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingCriterionPage", b => - { - b.Navigation("ReadingQuestionList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingPeriodSet", b => - { - b.Navigation("ReadingPeriodPlanList"); - - b.Navigation("ReadingPeriodSites"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionSystem", b => - { - b.Navigation("ReadingQuestionSystemList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionCriterionTrial", b => - { - b.Navigation("TrialClinicalDataSetCriterionList"); - - b.Navigation("TrialCriterionAdditionalAssessmentTypeList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionSystem", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", b => - { - b.Navigation("ReadingTableQuestionTrialList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingTableAnswerRowInfo", b => - { - b.Navigation("LesionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => - { - b.Navigation("SCPStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => - { - b.Navigation("SCPInstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Site", b => - { - b.Navigation("TrialSiteList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => - { - b.Navigation("ClinicalDataList"); - - b.Navigation("ClinicalFormList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectAdditionalEvaluationResult"); - - b.Navigation("SubjectCanceDoctorList"); - - b.Navigation("SubjectCriteriaEvaluationList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("SubjectDoctorList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("SubjectVisitTaskList"); - - b.Navigation("TaskStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => - { - b.Navigation("EarlierSubjectUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectVisit", b => - { - b.Navigation("CheckChallengeDialogList"); - - b.Navigation("NoneDicomStudyList"); - - b.Navigation("PreviousHistoryList"); - - b.Navigation("PreviousOtherList"); - - b.Navigation("PreviousPDFList"); - - b.Navigation("PreviousSurgeryList"); - - b.Navigation("QCChallengeDialogList"); - - b.Navigation("QCChallengeList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("SystemDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => - { - b.Navigation("NoticeUserReadList"); - - b.Navigation("NoticeUserTypeList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskMedicalReview", b => - { - b.Navigation("ReadingMedicalReviewDialogList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b => - { - b.Navigation("InstanceList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b => - { - b.Navigation("InstanceList"); - - b.Navigation("SeriesList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => - { - b.Navigation("ClinicalDataTrialSetList"); - - b.Navigation("ClinicalTrialProjectDetails"); - - b.Navigation("EnrollList"); - - b.Navigation("ReadModuleList"); - - b.Navigation("ReadingClinicalDataList"); - - b.Navigation("StudyList"); - - b.Navigation("SubjectDoctorUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TaskConsistentRuleList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TrialBodyPartList"); - - b.Navigation("TrialDicList"); - - b.Navigation("TrialDocumentList"); - - b.Navigation("TrialReadingCriterionList"); - - b.Navigation("TrialSiteList"); - - b.Navigation("TrialSiteSurveyList"); - - b.Navigation("TrialSiteUserList"); - - b.Navigation("TrialStateChangeList"); - - b.Navigation("TrialUserList"); - - b.Navigation("UserFeedBackList"); - - b.Navigation("VisitTaskList"); - - b.Navigation("VisitTaskReReadingList"); - - b.Navigation("WorkloadList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialDocument", b => - { - b.Navigation("NeedConfirmedUserTypeList"); - - b.Navigation("TrialDocConfirmedUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialEmailNoticeConfig", b => - { - b.Navigation("TrialEmailBlackUserList"); - - b.Navigation("TrialEmailNoticeUserList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialExperience", b => - { - b.Navigation("ExperienceCriteriaList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialQCQuestion", b => - { - b.Navigation("TrialQCQuestionAnswerList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSite", b => - { - b.Navigation("CRCUserList"); - - b.Navigation("SubjectList"); - - b.Navigation("SubjectVisitList"); - - b.Navigation("TrialSiteDicomAEList"); - - b.Navigation("TrialSiteSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialSiteSurvey", b => - { - b.Navigation("TrialSiteEquipmentSurveyList"); - - b.Navigation("TrialSiteUserSurveyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialStatusDetail", b => - { - b.Navigation("IntoGroupDetails"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.User", b => - { - b.Navigation("SystemDocConfirmedList"); - - b.Navigation("UserTrials"); - - b.Navigation("VisitTaskList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.UserType", b => - { - b.Navigation("SystemDocNeedConfirmedUserTypeList"); - - b.Navigation("UserList"); - - b.Navigation("UserTypeGroupList"); - - b.Navigation("UserTypeMenuList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitPlanInfluenceStat", b => - { - b.Navigation("InfluenceStudyList"); - }); - - modelBuilder.Entity("IRaCIS.Core.Domain.Models.VisitTask", b => - { - b.Navigation("GlobalVisitResultList"); - - b.Navigation("JudgeVisitList"); - - b.Navigation("LesionList"); - - b.Navigation("ReadingTaskQuestionAnswerList"); - - b.Navigation("TaskInfluenceList"); - - b.Navigation("TaskMedicalReviewList"); - - b.Navigation("TaskNoneDicomStudyFileList"); - - b.Navigation("TaskStudyList"); - - b.Navigation("UserFeedBackList"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241108054651_TrialJson.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241108054651_TrialJson.cs deleted file mode 100644 index ebed517fe..000000000 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241108054651_TrialJson.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IRaCIS.Core.Infra.EFCore.Migrations -{ - /// - public partial class TrialJson : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "TrialObjectNameConfigStr", - table: "Trial"); - - migrationBuilder.AddColumn( - name: "TrialObjectNameList", - table: "Trial", - type: "nvarchar(2000)", - maxLength: 2000, - nullable: false, - defaultValue: "", - comment: "项目术语配置Json字符串"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "TrialObjectNameList", - table: "Trial"); - - migrationBuilder.AddColumn( - name: "TrialObjectNameConfigStr", - table: "Trial", - type: "nvarchar(1000)", - maxLength: 1000, - nullable: false, - defaultValue: "", - comment: "项目术语配置Json字符串"); - } - } -} diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20241108051348_TestJsonObject.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241112013808_init.Designer.cs similarity index 96% rename from IRaCIS.Core.Infra.EFCore/Migrations/20241108051348_TestJsonObject.Designer.cs rename to IRaCIS.Core.Infra.EFCore/Migrations/20241112013808_init.Designer.cs index 1d60906b7..c99abe789 100644 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20241108051348_TestJsonObject.Designer.cs +++ b/IRaCIS.Core.Infra.EFCore/Migrations/20241112013808_init.Designer.cs @@ -12,8 +12,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace IRaCIS.Core.Infra.EFCore.Migrations { [DbContext(typeof(IRaCISDBContext))] - [Migration("20241108051348_TestJsonObject")] - partial class TestJsonObject + [Migration("20241112013808_init")] + partial class init { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -778,6 +778,62 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomAE", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CalledAE") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("IP") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("IsTestOK") + .HasColumnType("bit"); + + b.Property("LatestTestTime") + .HasColumnType("datetime2"); + + b.Property("Modality") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("Port") + .HasColumnType("int"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.ToTable("DicomAE", t => + { + t.HasComment("医院dicomAE 配置"); + }); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => { b.Property("SeqId") @@ -1156,6 +1212,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); + b.Property("PatientIdStr") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("PatientName") .IsRequired() .HasMaxLength(400) @@ -3212,6 +3273,58 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.PIAudit", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("IsEnrollment") + .HasColumnType("bit"); + + b.Property("IsPDConfirm") + .HasColumnType("bit"); + + b.Property("NotAgreeReason") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditImagePath") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditNote") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditState") + .HasColumnType("int"); + + b.Property("ReplyContent") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("VisitTaskId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.HasIndex("VisitTaskId"); + + b.ToTable("PIAudit"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => { b.Property("Id") @@ -5424,6 +5537,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("eCRF报告是否显示在图像页面"); + b.Property("PIReadingScopenEnum") + .HasColumnType("int"); + + b.Property("ReadingDivisionEnum") + .HasColumnType("int"); + b.Property("ReadingInfoSignTime") .HasColumnType("datetime2") .HasComment("阅片信息签名时间"); @@ -7137,20 +7256,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("StudyCount") .HasColumnType("int"); - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - b.HasKey("Id"); b.HasIndex("CreateUserId"); - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - b.ToTable("SCPImageUpload", t => { t.HasComment("项目中心 - 影像推送记录"); @@ -7320,15 +7429,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - b.Property("UpdateTime") .HasColumnType("datetime2"); @@ -7339,12 +7439,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasIndex("CreateUserId"); - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - b.ToTable("SCPPatient", t => { t.HasComment("项目中心 - 推送检查患者"); @@ -7614,7 +7708,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("StudyTime") .HasColumnType("datetime2"); - b.Property("SubjectVisitId") + b.Property("SubjectVisitId") .HasColumnType("uniqueidentifier"); b.Property("TrialId") @@ -7652,6 +7746,54 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudySubjectVisit", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("SCPStudyId") + .HasColumnType("uniqueidentifier"); + + b.Property("StudyId") + .HasColumnType("uniqueidentifier"); + + b.Property("SubjectId") + .HasColumnType("uniqueidentifier"); + + b.Property("SubjectVisitId") + .HasColumnType("uniqueidentifier"); + + b.Property("TrialId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.HasIndex("SCPStudyId"); + + b.HasIndex("SubjectId"); + + b.HasIndex("SubjectVisitId"); + + b.ToTable("SCPStudySubjectVisit", t => + { + t.HasComment("访视检查关联表"); + }); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => { b.Property("Id") @@ -7952,6 +8094,37 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubejctVisitDownload", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("IP") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("SubjectVisitId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.HasIndex("SubjectVisitId"); + + b.ToTable("SubejctVisitDownload", t => + { + t.HasComment("访视下载记录"); + }); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => { b.Property("Id") @@ -8338,6 +8511,103 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectPatient", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("DeleteUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("DeletedTime") + .HasColumnType("datetime2"); + + b.Property("IsBinded") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("PatientId") + .HasColumnType("uniqueidentifier"); + + b.Property("SubjectId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.HasIndex("PatientId"); + + b.HasIndex("SubjectId"); + + b.ToTable("SubjectPatient", t => + { + t.HasComment("受试者患者绑定关系"); + }); + }); + + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectPatientSCPStudy", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("DeleteUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("DeletedTime") + .HasColumnType("datetime2"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("PatientId") + .HasColumnType("uniqueidentifier"); + + b.Property("SCPStudyId") + .HasColumnType("uniqueidentifier"); + + b.Property("SubjectId") + .HasColumnType("uniqueidentifier"); + + b.Property("TrialId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.ToTable("SubjectPatientSCPStudy", t => + { + t.HasComment("受试者患者检查绑定关系"); + }); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => { b.Property("Id") @@ -8534,6 +8804,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("PDState") .HasColumnType("int"); + b.Property("PackState") + .HasColumnType("int"); + b.Property("PreliminaryAuditTime") .HasColumnType("datetime2"); @@ -8597,6 +8870,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("int") .HasComment("0 未执行 1 执行了 2 不可用"); + b.Property("VisitImageFileCount") + .HasColumnType("int"); + + b.Property("VisitImageZipPath") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("VisitImageZipSize") + .HasColumnType("bigint"); + b.Property("VisitName") .IsRequired() .HasMaxLength(400) @@ -10092,6 +10376,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); + b.Property("AuthorizationDate") + .HasColumnType("datetime2"); + + b.Property("AuthorizationDuration") + .HasColumnType("int"); + + b.Property("AuthorizationEncrypt") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("BlindBaseLineName") .IsRequired() .HasMaxLength(400) @@ -10106,6 +10401,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("CRO") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("CROId") .HasColumnType("uniqueidentifier"); @@ -10119,12 +10419,27 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("Code") .HasColumnType("int"); + b.Property("ContactPhone") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("ContactUser") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasColumnType("uniqueidentifier"); + b.Property("CriterionTypes") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("DeclarationTypes") .IsRequired() .HasMaxLength(400) @@ -10167,6 +10482,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("int") .HasComment("SMTP端口"); + b.Property("EnrollConfirmDefaultUserType") + .HasColumnType("int"); + b.Property("ExpectedPatients") .HasColumnType("int"); @@ -10207,6 +10525,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("是否配置过邮箱"); + b.Property("IsDeclaration") + .HasColumnType("bit"); + b.Property("IsDeleted") .HasColumnType("bit"); @@ -10234,6 +10555,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("跨项目复制"); + b.Property("IsMedicalReview") + .HasColumnType("bit"); + b.Property("IsNoticeSubjectCodeRule") .HasColumnType("bit") .HasComment("是否 提醒受试者编号规则"); @@ -10286,6 +10610,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("nvarchar(400)") .HasComment("主研单位"); + b.Property("MedicineName") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("MessageFromClient") .IsRequired() .HasMaxLength(400) @@ -10312,6 +10641,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("nvarchar(400)") .HasComment("出组后计划外访视名称"); + b.Property("PDProgressDefaultUserType") + .HasColumnType("int"); + b.Property("PhaseId") .HasColumnType("uniqueidentifier"); @@ -10369,6 +10701,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); + b.Property("Sponsor") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("SponsorId") .HasColumnType("uniqueidentifier"); @@ -10410,12 +10747,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("TrialFinishedTime") .HasColumnType("datetime2"); - b.Property("TrialObjectNameConfigStr") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)") - .HasComment("项目术语配置Json字符串"); - b.Property("TrialStatusStr") .IsRequired() .HasMaxLength(400) @@ -10432,6 +10763,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("UpdateUserId") .HasColumnType("uniqueidentifier"); + b.Property("VisitBaseDataDes") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("VisitPlanConfirmed") .HasColumnType("bit"); @@ -10442,8 +10778,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasKey("Id"); - b.HasIndex("CROId"); - b.HasIndex("CreateUserId"); b.HasIndex("IndicationTypeId"); @@ -10454,8 +10788,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasIndex("ReviewModeId"); - b.HasIndex("SponsorId"); - b.ToTable("Trial", t => { t.HasComment("项目 - 项目基本信息与配置"); @@ -12599,6 +12931,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("自动切换下一个任务"); + b.Property("CheckCode") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("Code") .HasColumnType("int"); @@ -12608,12 +12945,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("CreateUserId") .HasColumnType("uniqueidentifier"); - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - b.Property("DepartmentName") .IsRequired() .HasMaxLength(400) @@ -12638,9 +12969,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); - b.Property("IsDeleted") - .HasColumnType("bit"); - b.Property("IsFirstAdd") .HasColumnType("bit") .HasComment("首次登录需要修改密码"); @@ -13324,6 +13652,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("datetime2") .HasComment("通知IR加急阅片时间"); + b.Property("FirstAuditTime") + .HasColumnType("datetime2"); + + b.Property("FirstAuditUserId") + .HasColumnType("uniqueidentifier"); + b.Property("FirstReadingTime") .HasColumnType("datetime2") .HasComment("首次阅片时间"); @@ -13351,6 +13685,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("临床数据是否签名"); + b.Property("IsConfirmReminder") + .HasColumnType("bit"); + + b.Property("IsEnrollment") + .HasColumnType("bit"); + b.Property("IsFrontTaskNeedSignButNotSign") .HasColumnType("bit") .HasComment("前序任务需要签名 但是未签名"); @@ -13375,6 +13715,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("临床数据"); + b.Property("IsPDConfirm") + .HasColumnType("bit"); + b.Property("IsPMSetBack") .HasColumnType("bit") .HasComment("PM 对该任务进行了回退 影响的任务不设置"); @@ -13414,6 +13757,30 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("uniqueidentifier") .HasComment("在访视或者全局任务上记录 裁判任务的Id"); + b.Property("LatestReplyTime") + .HasColumnType("datetime2"); + + b.Property("LatestReplyUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("NotAgreeReason") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditImagePath") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditNote") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditState") + .HasColumnType("int"); + b.Property("PastResultTaskIds") .IsRequired() .HasMaxLength(2000) @@ -13438,6 +13805,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("nvarchar(2000)") .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); + b.Property("ReportExportDate") + .HasColumnType("datetime2"); + + b.Property("ReportExportNum") + .HasColumnType("int"); + + b.Property("ReportExportUrl") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("ReportRelatedTaskIds") .IsRequired() .HasMaxLength(2000) @@ -13455,6 +13833,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("uniqueidentifier") .HasComment("任务来源访视Id 方便回更访视读片状态"); + b.Property("SubjectCriterionClaimUserId") + .HasColumnType("uniqueidentifier"); + b.Property("SubjectId") .HasColumnType("uniqueidentifier"); @@ -13516,14 +13897,20 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasIndex("DoctorUserId"); + b.HasIndex("FirstAuditUserId"); + b.HasIndex("JudgeResultTaskId"); b.HasIndex("JudgeVisitTaskId"); + b.HasIndex("LatestReplyUserId"); + b.HasIndex("SouceReadModuleId"); b.HasIndex("SourceSubjectVisitId"); + b.HasIndex("SubjectCriterionClaimUserId"); + b.HasIndex("SubjectId"); b.HasIndex("TrialId"); @@ -13761,6 +14148,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); + b.Property("TestDate") + .HasColumnType("date"); + b.Property("TestEnumList") .IsRequired() .HasMaxLength(1000) @@ -14000,6 +14390,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("VisitTask"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomAE", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -14502,6 +14903,25 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("OrganInfo"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.PIAudit", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") + .WithMany() + .HasForeignKey("VisitTaskId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + + b.Navigation("VisitTask"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -15581,23 +16001,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); }); modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => @@ -15636,29 +16040,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); }); modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => @@ -15697,7 +16079,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") .WithMany() - .HasForeignKey("SubjectVisitId"); + .HasForeignKey("SubjectVisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") .WithMany() @@ -15722,6 +16106,41 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("TrialSite"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudySubjectVisit", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") + .WithMany("SCPStudySubjectVisitList") + .HasForeignKey("SCPStudyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") + .WithMany() + .HasForeignKey("SubjectId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") + .WithMany("SCPStudySubjectVisitList") + .HasForeignKey("SubjectVisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + + b.Navigation("SCPStudy"); + + b.Navigation("Subject"); + + b.Navigation("SubjectVisit"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -15821,6 +16240,25 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("Trial"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubejctVisitDownload", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") + .WithMany() + .HasForeignKey("SubjectVisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + + b.Navigation("SubjectVisit"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -16009,6 +16447,44 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("TrialReadingCriterion"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectPatient", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") + .WithMany("SubjectPatientList") + .HasForeignKey("PatientId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") + .WithMany("SubjectPatientList") + .HasForeignKey("SubjectId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + + b.Navigation("Patient"); + + b.Navigation("Subject"); + }); + + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectPatientSCPStudy", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -16536,10 +17012,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") .WithMany() .HasForeignKey("CreateUserId") @@ -16564,11 +17036,37 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .WithMany() .HasForeignKey("ReviewModeId"); - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); + b.OwnsMany("IRaCIS.Core.Domain.Models.TrialObjectNameConfig", "TrialObjectNameList", b1 => + { + b1.Property("TrialId") + .HasColumnType("uniqueidentifier"); - b.Navigation("CRO"); + b1.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b1.Property("IsDefault") + .HasColumnType("bit"); + + b1.Property("Name") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b1.Property("TrialName") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b1.HasKey("TrialId", "Id"); + + b1.ToTable("Trial"); + + b1.ToJson("TrialObjectNameList"); + + b1.WithOwner() + .HasForeignKey("TrialId"); + }); b.Navigation("CreateUser"); @@ -16580,7 +17078,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("ReviewMode"); - b.Navigation("Sponsor"); + b.Navigation("TrialObjectNameList"); }); modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => @@ -17528,6 +18026,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .WithMany("VisitTaskList") .HasForeignKey("DoctorUserId"); + b.HasOne("IRaCIS.Core.Domain.Models.User", "FirstAuditUser") + .WithMany() + .HasForeignKey("FirstAuditUserId"); + b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") .WithMany() .HasForeignKey("JudgeResultTaskId"); @@ -17536,6 +18038,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .WithMany("JudgeVisitList") .HasForeignKey("JudgeVisitTaskId"); + b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") + .WithMany() + .HasForeignKey("LatestReplyUserId"); + b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") .WithMany("ModuleTaskList") .HasForeignKey("SouceReadModuleId"); @@ -17544,6 +18050,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .WithMany("VisitTaskList") .HasForeignKey("SourceSubjectVisitId"); + b.HasOne("IRaCIS.Core.Domain.Models.User", "SubjectCriterionClaimUser") + .WithMany() + .HasForeignKey("SubjectCriterionClaimUserId"); + b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") .WithMany("SubjectVisitTaskList") .HasForeignKey("SubjectId") @@ -17566,16 +18076,22 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("DoctorUser"); + b.Navigation("FirstAuditUser"); + b.Navigation("JudgeResultTask"); b.Navigation("JudgeVisitTask"); + b.Navigation("LatestReplyUser"); + b.Navigation("ReadModule"); b.Navigation("SourceSubjectVisit"); b.Navigation("Subject"); + b.Navigation("SubjectCriterionClaimUser"); + b.Navigation("Trial"); b.Navigation("TrialReadingCriterion"); @@ -17820,6 +18336,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => { b.Navigation("SCPStudyList"); + + b.Navigation("SubjectPatientList"); }); modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => @@ -17831,6 +18349,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations { b.Navigation("InstanceList"); + b.Navigation("SCPStudySubjectVisitList"); + b.Navigation("SeriesList"); }); @@ -17861,6 +18381,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("SubjectDoctorList"); + b.Navigation("SubjectPatientList"); + b.Navigation("SubjectVisitList"); b.Navigation("SubjectVisitTaskList"); @@ -17895,6 +18417,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("ReadingClinicalDataList"); + b.Navigation("SCPStudySubjectVisitList"); + b.Navigation("StudyList"); b.Navigation("SubjectCriteriaEvaluationVisitFilterList"); diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20240926034717_CodeFirst_Init.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20241112013808_init.cs similarity index 95% rename from IRaCIS.Core.Infra.EFCore/Migrations/20240926034717_CodeFirst_Init.cs rename to IRaCIS.Core.Infra.EFCore/Migrations/20241112013808_init.cs index d76c95a4b..5893c9b6d 100644 --- a/IRaCIS.Core.Infra.EFCore/Migrations/20240926034717_CodeFirst_Init.cs +++ b/IRaCIS.Core.Infra.EFCore/Migrations/20241112013808_init.cs @@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations; namespace IRaCIS.Core.Infra.EFCore.Migrations { /// - public partial class CodeFirst_Init : Migration + public partial class init : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) @@ -33,7 +33,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false) + Name = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + StringList = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), + DateTimeList = table.Column(type: "nvarchar(max)", nullable: false), + TestEnumList = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), + TestJsonObjectLsit = table.Column(type: "nvarchar(max)", nullable: false), + TestDate = table.Column(type: "date", nullable: true) }, constraints: table => { @@ -453,6 +458,29 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "稽查 - 记录表"); + migrationBuilder.CreateTable( + name: "DicomAE", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CalledAE = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + IP = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + Port = table.Column(type: "int", nullable: false), + Modality = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + Description = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + LatestTestTime = table.Column(type: "datetime2", nullable: true), + IsTestOK = table.Column(type: "bit", nullable: false), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DicomAE", x => x.Id); + }, + comment: "医院dicomAE 配置"); + migrationBuilder.CreateTable( name: "DicomInstance", columns: table => new @@ -492,6 +520,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations constraints: table => { table.PrimaryKey("PK_DicomInstance", x => x.SeqId); + table.UniqueConstraint("AK_DicomInstance_Id", x => x.Id); }, comment: "归档 - Instance表"); @@ -575,6 +604,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations TriggerTime = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), UploadedTime = table.Column(type: "datetime2", nullable: true, comment: "上传时间"), Uploader = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PatientIdStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), Id = table.Column(type: "uniqueidentifier", nullable: false), DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false), @@ -675,6 +705,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations EMail = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), FirstName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), GCP = table.Column(type: "int", nullable: false), + GCPTime = table.Column(type: "datetime2", nullable: true), + GCPAgencies = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), GCPId = table.Column(type: "uniqueidentifier", nullable: false), HospitalId = table.Column(type: "uniqueidentifier", nullable: true), HospitalOther = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), @@ -712,6 +744,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations SubspecialityOther = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), SubspecialityOtherCN = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), WeChat = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + WorkPartTime = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + WorkPartTimeEn = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + Summarize = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + SummarizeEn = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + BankNum = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + BankName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + OpeningBank = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + IdCard = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + BankPhoneNum = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + DoctorId = table.Column(type: "uniqueidentifier", nullable: true), + TrialId = table.Column(type: "uniqueidentifier", nullable: true), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false), UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), @@ -801,6 +844,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations UserName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), UserTypeEnum = table.Column(type: "int", nullable: false), UserTypeId = table.Column(type: "uniqueidentifier", nullable: false), + CheckCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false), UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), @@ -844,6 +888,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations Remark = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), TrialId = table.Column(type: "uniqueidentifier", nullable: true), TrialReadingCriterionId = table.Column(type: "uniqueidentifier", nullable: true), + IsIRUpload = table.Column(type: "bit", nullable: false, comment: "是否是IR上传"), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false) }, @@ -899,7 +944,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - BeginDate = table.Column(type: "datetime2", nullable: true), + BeginDate = table.Column(type: "date", nullable: true), City = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), CityCN = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), Country = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), @@ -907,7 +952,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations Degree = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), DegreeCN = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), DoctorId = table.Column(type: "uniqueidentifier", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: true), + EndDate = table.Column(type: "date", nullable: true), Major = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), MajorCN = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), Organization = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), @@ -948,6 +993,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations CriterionTypeEnum = table.Column(type: "int", nullable: true, comment: "标准枚举"), Description = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), EmailCron = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "发送周期"), + EmailDelaySeconds = table.Column(type: "int", nullable: true, comment: "邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"), EmailHtmlContent = table.Column(type: "nvarchar(max)", nullable: false), EmailHtmlContentCN = table.Column(type: "nvarchar(max)", nullable: false), EmailTopic = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), @@ -978,6 +1024,32 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "后台 - 邮件配置表表(需要同步)"); + migrationBuilder.CreateTable( + name: "EventStoreRecord", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + EventTypeName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "简单的事件类型名"), + EventType = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "完整的事件类型名"), + EventData = table.Column(type: "nvarchar(max)", nullable: false), + EventState = table.Column(type: "int", nullable: false), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_EventStoreRecord", x => x.Id); + table.ForeignKey( + name: "FK_EventStoreRecord_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "记录触发的事件,以及状态,从而方便重试操作"); + migrationBuilder.CreateTable( name: "ExchangeRate", columns: table => new @@ -1300,11 +1372,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), DoctorId = table.Column(type: "uniqueidentifier", nullable: false), - BeginDate = table.Column(type: "date", nullable: true), - EndDate = table.Column(type: "date", nullable: true), + BeginDate = table.Column(type: "date", nullable: true), + EndDate = table.Column(type: "date", nullable: true), Training = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), Major = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), Hospital = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + HospitalId = table.Column(type: "uniqueidentifier", nullable: true), School = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), Country = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), Province = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), @@ -1651,61 +1724,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "系统标准 - 全局配置 (需要同步)"); - migrationBuilder.CreateTable( - name: "ReadingTableQuestionSystem", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReadingQuestionId = table.Column(type: "uniqueidentifier", nullable: false, comment: "系统表的问题Id ReadingQuestionSystem的Id"), - Type = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: true), - ParentTriggerValue = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "父问题触发值"), - QuestionName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "问题名称"), - IsRequired = table.Column(type: "int", nullable: false), - ShowOrder = table.Column(type: "int", nullable: false, comment: "排序号"), - TypeValue = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "值"), - IsEnable = table.Column(type: "bit", nullable: false, comment: "是否启用"), - Remark = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - RelevanceId = table.Column(type: "uniqueidentifier", nullable: true, comment: "显示父问题"), - RelevanceValue = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "显示父问题的值"), - ShowQuestion = table.Column(type: "int", nullable: false, comment: "是否显示"), - MaxRowCount = table.Column(type: "int", nullable: true, comment: "最大问题数"), - DataTableName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "数据表名称"), - DataTableColumn = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "数据列"), - DependParentId = table.Column(type: "uniqueidentifier", nullable: true, comment: "关联父问题"), - IsDepend = table.Column(type: "int", nullable: false, comment: "是否关联"), - TableQuestionType = table.Column(type: "int", nullable: true, comment: "表格问题类型"), - SystemCriterionId = table.Column(type: "uniqueidentifier", nullable: false, comment: "系统标准Id"), - QuestionMark = table.Column(type: "int", nullable: true, comment: "问题标识"), - DictionaryCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "字典code"), - ValueType = table.Column(type: "int", nullable: true, comment: "数值类型"), - Unit = table.Column(type: "int", nullable: true, comment: "单位"), - QuestionEnName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "问题英文名称"), - DataSource = table.Column(type: "int", nullable: false, comment: "数据来源"), - LimitEdit = table.Column(type: "int", nullable: false, comment: "限制编辑"), - MaxAnswerLength = table.Column(type: "int", nullable: true, comment: "最大答案长度"), - FileType = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true, comment: "文件类型"), - QuestionClassify = table.Column(type: "int", nullable: true, comment: "问题分类"), - CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ReadingTableQuestionSystem", x => x.Id); - table.ForeignKey( - name: "FK_ReadingTableQuestionSystem_ReadingTableQuestionSystem_DependParentId", - column: x => x.DependParentId, - principalTable: "ReadingTableQuestionSystem", - principalColumn: "Id"); - table.ForeignKey( - name: "FK_ReadingTableQuestionSystem_User_CreateUserId", - column: x => x.CreateUserId, - principalTable: "User", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }, - comment: "系统表格问题"); - migrationBuilder.CreateTable( name: "ResearchPublication", columns: table => new @@ -1737,6 +1755,64 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "医生 - 科研学术记录"); + migrationBuilder.CreateTable( + name: "SCPImageUpload", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CallingAE = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + CalledAE = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + CallingAEIP = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + StartTime = table.Column(type: "datetime2", nullable: false), + EndTime = table.Column(type: "datetime2", nullable: false), + FileCount = table.Column(type: "int", nullable: false), + FileSize = table.Column(type: "bigint", nullable: false), + StudyCount = table.Column(type: "int", nullable: false), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SCPImageUpload", x => x.Id); + table.ForeignKey( + name: "FK_SCPImageUpload_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "项目中心 - 影像推送记录"); + + migrationBuilder.CreateTable( + name: "SCPPatient", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PatientIdStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PatientName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PatientAge = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PatientSex = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PatientBirthDate = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + EarliestStudyTime = table.Column(type: "datetime2", nullable: true), + LatestStudyTime = table.Column(type: "datetime2", nullable: true), + LatestPushTime = table.Column(type: "datetime2", nullable: false), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SCPPatient", x => x.Id); + table.ForeignKey( + name: "FK_SCPPatient_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "项目中心 - 推送检查患者"); + migrationBuilder.CreateTable( name: "ShortcutKey", columns: table => new @@ -1794,6 +1870,35 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "机构 - Sponsor"); + migrationBuilder.CreateTable( + name: "SubjectPatientSCPStudy", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SubjectId = table.Column(type: "uniqueidentifier", nullable: false), + PatientId = table.Column(type: "uniqueidentifier", nullable: false), + TrialId = table.Column(type: "uniqueidentifier", nullable: false), + SCPStudyId = table.Column(type: "uniqueidentifier", nullable: false), + DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false), + DeletedTime = table.Column(type: "datetime2", nullable: true), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SubjectPatientSCPStudy", x => x.Id); + table.ForeignKey( + name: "FK_SubjectPatientSCPStudy_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "受试者患者检查绑定关系"); + migrationBuilder.CreateTable( name: "SystemAnonymization", columns: table => new @@ -1976,6 +2081,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations Name = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), SignViewMinimumMinutes = table.Column(type: "int", nullable: false), Path = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), + DocUserSignType = table.Column(type: "int", nullable: false), DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false), DeletedTime = table.Column(type: "datetime2", nullable: true), @@ -2077,6 +2183,146 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目阅片 - 一致性分析规则"); + migrationBuilder.CreateTable( + name: "Trial", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + IndicationTypeId = table.Column(type: "uniqueidentifier", nullable: false), + PhaseId = table.Column(type: "uniqueidentifier", nullable: true), + TrialCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + Code = table.Column(type: "int", nullable: false), + Indication = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + TrialEnrollStatus = table.Column(type: "int", nullable: false, comment: "入组那一块的状态"), + TrialStatusStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "启动状态"), + CROId = table.Column(type: "uniqueidentifier", nullable: true), + SponsorId = table.Column(type: "uniqueidentifier", nullable: true), + ReviewModeId = table.Column(type: "uniqueidentifier", nullable: true), + ProjectCycle = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + ExpectedPatients = table.Column(type: "int", nullable: false), + TimePointsPerPatient = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), + GRRReviewers = table.Column(type: "int", nullable: false), + TotalReviewers = table.Column(type: "int", nullable: false), + ReviewProtocol = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + MessageFromClient = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + Note = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + ReviewProtocolName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + MessageFromClientName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + Expedited = table.Column(type: "int", nullable: false), + DeclarationTypes = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + AttendedReviewerTypes = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + TrialExtraConfigJsonStr = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), + VisitPlanConfirmed = table.Column(type: "bit", nullable: false), + SubjectCodeRule = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "受试者编号具体规则"), + IsNoticeSubjectCodeRule = table.Column(type: "bit", nullable: false, comment: "是否 提醒受试者编号规则"), + IsHaveFirstGiveMedicineDate = table.Column(type: "bit", nullable: false, comment: "是否 有基准时间(首次给药时间)"), + IsHaveSubjectAge = table.Column(type: "bit", nullable: false, comment: "是否有 受试者年龄"), + IsEnrollementQualificationConfirm = table.Column(type: "bit", nullable: false, comment: "是否有 入组性确认"), + OutEnrollmentVisitName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "出组后计划外访视名称"), + IsVerifyVisitImageDate = table.Column(type: "bit", nullable: false, comment: "是否 验证拍片日期"), + ClinicalInformationTransmissionEnum = table.Column(type: "int", nullable: false, comment: "临床信息传输 1:系统录入 2:系统录入+PDF 0:无"), + IsCRAAuditClinicalInformation = table.Column(type: "bit", nullable: false, comment: "是否审核 临床信息"), + QCProcessEnum = table.Column(type: "int", nullable: false, comment: "QC流程 0 不审,1 单审,2双审"), + IsImageConsistencyVerification = table.Column(type: "bit", nullable: false, comment: "影像一致性核查"), + IsImageExport = table.Column(type: "bit", nullable: false, comment: "影像导出"), + IsSubjectSecondCodeView = table.Column(type: "bit", nullable: false), + ReadingMode = table.Column(type: "int", nullable: false, comment: "阅片方式"), + ChangeDefalutDays = table.Column(type: "int", nullable: false), + IsImageReplicationAcrossTrial = table.Column(type: "bit", nullable: false, comment: "跨项目复制"), + BodyPartTypes = table.Column(type: "nvarchar(max)", nullable: false), + Modalitys = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PreliminaryAuditReuploadText = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + ReviewAuditReuploadText = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + IsPDProgressView = table.Column(type: "bit", nullable: false, comment: "PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"), + ResearchProgramNo = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "研究方案号"), + ExperimentName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "实验名称"), + MainResearchUnit = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "主研单位"), + HeadPI = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "负责人PI"), + IsUrgent = table.Column(type: "bit", nullable: false), + TrialType = table.Column(type: "int", nullable: false, comment: "项目类型 1 正式项目、0 非正式项目 2是培训项目"), + PlanSiteCount = table.Column(type: "int", nullable: false), + PlanVisitCount = table.Column(type: "int", nullable: false), + TrialFinishedTime = table.Column(type: "datetime2", nullable: true), + IsSubjectSexView = table.Column(type: "bit", nullable: false), + IsSubjectExpeditedView = table.Column(type: "bit", nullable: false, comment: "配置Suject Edit页面 是否显示 加急"), + IsTrialStart = table.Column(type: "bit", nullable: false), + QCQuestionConfirmedUserId = table.Column(type: "uniqueidentifier", nullable: true), + QCQuestionConfirmedTime = table.Column(type: "datetime2", nullable: true), + TrialFinishTime = table.Column(type: "datetime2", nullable: true, comment: "项目完成时间"), + DigitPlaces = table.Column(type: "int", nullable: true), + IsTrialProcessConfirmed = table.Column(type: "bit", nullable: false), + IsTrialBasicLogicConfirmed = table.Column(type: "bit", nullable: false), + IsTrialUrgentConfirmed = table.Column(type: "bit", nullable: false), + IsQCQuestionConfirmed = table.Column(type: "bit", nullable: false), + SyncClinicalDataTime = table.Column(type: "datetime2", nullable: true, comment: "同步临床数据时间"), + BlindBaseLineName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + BlindFollowUpPrefix = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + IndicationEnum = table.Column(type: "int", nullable: false), + VitrualSiteCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + EmailFromEmail = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "发件箱账号"), + EmailFromName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "发件人"), + EmailAuthorizationCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "密码/授权码"), + EmailSMTPServerAddress = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "SMTP服务器"), + EmailSMTPServerPort = table.Column(type: "int", nullable: false, comment: "SMTP端口"), + IsConfigureEmail = table.Column(type: "bit", nullable: false, comment: "是否配置过邮箱"), + IsPACSConnect = table.Column(type: "bit", nullable: false), + IsTrialPACSConfirmed = table.Column(type: "bit", nullable: false), + EnrollConfirmDefaultUserType = table.Column(type: "int", nullable: true), + PDProgressDefaultUserType = table.Column(type: "int", nullable: true), + IsDeclaration = table.Column(type: "bit", nullable: false), + IsMedicalReview = table.Column(type: "bit", nullable: false), + VisitBaseDataDes = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + CRO = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + Sponsor = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + MedicineName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + ContactUser = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + ContactPhone = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + AuthorizationDuration = table.Column(type: "int", nullable: false), + AuthorizationEncrypt = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + AuthorizationDate = table.Column(type: "datetime2", nullable: true), + CriterionTypes = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false), + DeletedTime = table.Column(type: "datetime2", nullable: true), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false), + TrialObjectNameList = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Trial", x => x.Id); + table.ForeignKey( + name: "FK_Trial_Dictionary_IndicationTypeId", + column: x => x.IndicationTypeId, + principalTable: "Dictionary", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Trial_Dictionary_PhaseId", + column: x => x.PhaseId, + principalTable: "Dictionary", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_Trial_Dictionary_ReviewModeId", + column: x => x.ReviewModeId, + principalTable: "Dictionary", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_Trial_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Trial_User_QCQuestionConfirmedUserId", + column: x => x.QCQuestionConfirmedUserId, + principalTable: "User", + principalColumn: "Id"); + }, + comment: "项目 - 项目基本信息与配置"); + migrationBuilder.CreateTable( name: "TrialClinicalQuestion", columns: table => new @@ -2201,39 +2447,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目 - 项目DicomAE"); - migrationBuilder.CreateTable( - name: "TrialExperience", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DoctorId = table.Column(type: "uniqueidentifier", nullable: false), - PhaseId = table.Column(type: "uniqueidentifier", nullable: true), - EvaluationContent = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - VisitReadingCount = table.Column(type: "int", nullable: false), - StartTime = table.Column(type: "datetime2", nullable: true), - EndTime = table.Column(type: "datetime2", nullable: true), - CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_TrialExperience", x => x.Id); - table.ForeignKey( - name: "FK_TrialExperience_Dictionary_PhaseId", - column: x => x.PhaseId, - principalTable: "Dictionary", - principalColumn: "Id"); - table.ForeignKey( - name: "FK_TrialExperience_User_CreateUserId", - column: x => x.CreateUserId, - principalTable: "User", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }, - comment: "医生 - 项目临床经历"); - migrationBuilder.CreateTable( name: "TrialRevenuesPrice", columns: table => new @@ -2325,7 +2538,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations OptType = table.Column(type: "int", nullable: false), LoginPassword = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), LoginUserId = table.Column(type: "uniqueidentifier", nullable: true), - OptUserId = table.Column(type: "uniqueidentifier", nullable: true), + OptUserId = table.Column(type: "uniqueidentifier", nullable: true, comment: "被操作的人,自己操作的就是自己"), IPRegion = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false) @@ -2667,8 +2880,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations GroupId = table.Column(type: "uniqueidentifier", nullable: true, comment: "分组ID"), FileType = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "文件类型"), GroupClassify = table.Column(type: "int", nullable: true, comment: "分组分类"), + ClassifyType = table.Column(type: "int", nullable: true, comment: "分类类型"), + ClassifyEditType = table.Column(type: "int", nullable: true), + ClassifyShowType = table.Column(type: "int", nullable: true), QuestionClassify = table.Column(type: "int", nullable: true, comment: "问题分类"), HighlightAnswer = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "高亮问题的答案"), + ExportIdentification = table.Column(type: "int", nullable: true, comment: "导出标识"), + ExportResultStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "导出结果"), + ClassifyAlgorithms = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "分类算法"), + ClassifyQuestionId = table.Column(type: "uniqueidentifier", nullable: true, comment: "分类问题Id"), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false) }, @@ -2705,141 +2925,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "系统阅片问题"); - migrationBuilder.CreateTable( - name: "Trial", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - IndicationTypeId = table.Column(type: "uniqueidentifier", nullable: false), - PhaseId = table.Column(type: "uniqueidentifier", nullable: true), - TrialCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - Code = table.Column(type: "int", nullable: false), - Indication = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - TrialEnrollStatus = table.Column(type: "int", nullable: false, comment: "入组那一块的状态"), - TrialStatusStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "启动状态"), - CROId = table.Column(type: "uniqueidentifier", nullable: true), - SponsorId = table.Column(type: "uniqueidentifier", nullable: true), - ReviewModeId = table.Column(type: "uniqueidentifier", nullable: true), - ProjectCycle = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - ExpectedPatients = table.Column(type: "int", nullable: false), - TimePointsPerPatient = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - GRRReviewers = table.Column(type: "int", nullable: false), - TotalReviewers = table.Column(type: "int", nullable: false), - ReviewProtocol = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - MessageFromClient = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - Note = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - ReviewProtocolName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - MessageFromClientName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - Expedited = table.Column(type: "int", nullable: false), - DeclarationTypes = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - AttendedReviewerTypes = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - TrialExtraConfigJsonStr = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), - VisitPlanConfirmed = table.Column(type: "bit", nullable: false), - SubjectCodeRule = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "受试者编号具体规则"), - IsNoticeSubjectCodeRule = table.Column(type: "bit", nullable: false, comment: "是否 提醒受试者编号规则"), - IsHaveFirstGiveMedicineDate = table.Column(type: "bit", nullable: false, comment: "是否 有基准时间(首次给药时间)"), - IsHaveSubjectAge = table.Column(type: "bit", nullable: false, comment: "是否有 受试者年龄"), - IsEnrollementQualificationConfirm = table.Column(type: "bit", nullable: false, comment: "是否有 入组性确认"), - OutEnrollmentVisitName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "出组后计划外访视名称"), - IsVerifyVisitImageDate = table.Column(type: "bit", nullable: false, comment: "是否 验证拍片日期"), - ClinicalInformationTransmissionEnum = table.Column(type: "int", nullable: false, comment: "临床信息传输 1:系统录入 2:系统录入+PDF 0:无"), - IsCRAAuditClinicalInformation = table.Column(type: "bit", nullable: false, comment: "是否审核 临床信息"), - QCProcessEnum = table.Column(type: "int", nullable: false, comment: "QC流程 0 不审,1 单审,2双审"), - IsImageConsistencyVerification = table.Column(type: "bit", nullable: false, comment: "影像一致性核查"), - IsImageExport = table.Column(type: "bit", nullable: false, comment: "影像导出"), - IsSubjectSecondCodeView = table.Column(type: "bit", nullable: false), - ReadingMode = table.Column(type: "int", nullable: false, comment: "阅片方式"), - ChangeDefalutDays = table.Column(type: "int", nullable: false), - IsImageReplicationAcrossTrial = table.Column(type: "bit", nullable: false, comment: "跨项目复制"), - BodyPartTypes = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - Modalitys = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - PreliminaryAuditReuploadText = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - ReviewAuditReuploadText = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - IsPDProgressView = table.Column(type: "bit", nullable: false, comment: "PD 进展是否显示 配置访视 是否显示 PD进展 (从而可以设置状态)"), - ResearchProgramNo = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "研究方案号"), - ExperimentName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "实验名称"), - MainResearchUnit = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "主研单位"), - HeadPI = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "负责人PI"), - IsUrgent = table.Column(type: "bit", nullable: false), - TrialType = table.Column(type: "int", nullable: false, comment: "项目类型 1 正式项目、0 非正式项目 2是培训项目"), - PlanSiteCount = table.Column(type: "int", nullable: false), - PlanVisitCount = table.Column(type: "int", nullable: false), - TrialFinishedTime = table.Column(type: "datetime2", nullable: true), - IsSubjectSexView = table.Column(type: "bit", nullable: false), - IsSubjectExpeditedView = table.Column(type: "bit", nullable: false, comment: "配置Suject Edit页面 是否显示 加急"), - IsTrialStart = table.Column(type: "bit", nullable: false), - QCQuestionConfirmedUserId = table.Column(type: "uniqueidentifier", nullable: true), - QCQuestionConfirmedTime = table.Column(type: "datetime2", nullable: true), - TrialFinishTime = table.Column(type: "datetime2", nullable: true, comment: "项目完成时间"), - DigitPlaces = table.Column(type: "int", nullable: true), - IsTrialProcessConfirmed = table.Column(type: "bit", nullable: false), - IsTrialBasicLogicConfirmed = table.Column(type: "bit", nullable: false), - IsTrialUrgentConfirmed = table.Column(type: "bit", nullable: false), - IsQCQuestionConfirmed = table.Column(type: "bit", nullable: false), - SyncClinicalDataTime = table.Column(type: "datetime2", nullable: true, comment: "同步临床数据时间"), - BlindBaseLineName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - BlindFollowUpPrefix = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - IndicationEnum = table.Column(type: "int", nullable: false), - VitrualSiteCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - EmailFromEmail = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "发件箱账号"), - EmailFromName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "发件人"), - EmailAuthorizationCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "密码/授权码"), - EmailSMTPServerAddress = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "SMTP服务器"), - EmailSMTPServerPort = table.Column(type: "int", nullable: false, comment: "SMTP端口"), - IsConfigureEmail = table.Column(type: "bit", nullable: false, comment: "是否配置过邮箱"), - IsPACSConnect = table.Column(type: "bit", nullable: false), - IsTrialPACSConfirmed = table.Column(type: "bit", nullable: false), - DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - DeletedTime = table.Column(type: "datetime2", nullable: true), - CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Trial", x => x.Id); - table.ForeignKey( - name: "FK_Trial_CROCompany_CROId", - column: x => x.CROId, - principalTable: "CROCompany", - principalColumn: "Id"); - table.ForeignKey( - name: "FK_Trial_Dictionary_IndicationTypeId", - column: x => x.IndicationTypeId, - principalTable: "Dictionary", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Trial_Dictionary_PhaseId", - column: x => x.PhaseId, - principalTable: "Dictionary", - principalColumn: "Id"); - table.ForeignKey( - name: "FK_Trial_Dictionary_ReviewModeId", - column: x => x.ReviewModeId, - principalTable: "Dictionary", - principalColumn: "Id"); - table.ForeignKey( - name: "FK_Trial_Sponsor_SponsorId", - column: x => x.SponsorId, - principalTable: "Sponsor", - principalColumn: "Id"); - table.ForeignKey( - name: "FK_Trial_User_CreateUserId", - column: x => x.CreateUserId, - principalTable: "User", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Trial_User_QCQuestionConfirmedUserId", - column: x => x.QCQuestionConfirmedUserId, - principalTable: "User", - principalColumn: "Id"); - }, - comment: "项目 - 项目基本信息与配置"); - migrationBuilder.CreateTable( name: "SystemDocConfirmedUser", columns: table => new @@ -2967,39 +3052,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "后台 - 系统通知用户类型配置"); - migrationBuilder.CreateTable( - name: "TrialExperienceCriteria", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DoctorId = table.Column(type: "uniqueidentifier", nullable: false), - TrialExperienceId = table.Column(type: "uniqueidentifier", nullable: false), - EvaluationCriteriaId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_TrialExperienceCriteria", x => x.Id); - table.ForeignKey( - name: "FK_TrialExperienceCriteria_Dictionary_EvaluationCriteriaId", - column: x => x.EvaluationCriteriaId, - principalTable: "Dictionary", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_TrialExperienceCriteria_Doctor_DoctorId", - column: x => x.DoctorId, - principalTable: "Doctor", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_TrialExperienceCriteria_TrialExperience_TrialExperienceId", - column: x => x.TrialExperienceId, - principalTable: "TrialExperience", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }, - comment: "医生 - 项目临床经历评估标准"); - migrationBuilder.CreateTable( name: "DoctorWorkload", columns: table => new @@ -3158,6 +3210,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations ImageDownloadEnum = table.Column(type: "int", nullable: false, comment: "阅片过程下载影像"), ImageUploadEnum = table.Column(type: "int", nullable: false, comment: "阅片过程上传影像"), IsImageFilter = table.Column(type: "bit", nullable: false, comment: "是否影像筛选"), + ReadingDivisionEnum = table.Column(type: "int", nullable: false), + PIReadingScopenEnum = table.Column(type: "int", nullable: false), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false) }, @@ -3280,6 +3334,51 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目 - 项目文档"); + migrationBuilder.CreateTable( + name: "TrialExperience", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DoctorId = table.Column(type: "uniqueidentifier", nullable: false), + PhaseId = table.Column(type: "uniqueidentifier", nullable: true), + EvaluationContent = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + VisitReadingCount = table.Column(type: "int", nullable: false), + StartTime = table.Column(type: "datetime2", nullable: true), + EndTime = table.Column(type: "datetime2", nullable: true), + OtherStages = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + OtherCriterion = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + IndicationEnum = table.Column(type: "int", nullable: false), + ExperienceDataType = table.Column(type: "int", nullable: false), + IndicationTypeId = table.Column(type: "uniqueidentifier", nullable: false), + TrialId = table.Column(type: "uniqueidentifier", nullable: true), + CriterionType = table.Column(type: "int", nullable: true), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TrialExperience", x => x.Id); + table.ForeignKey( + name: "FK_TrialExperience_Dictionary_PhaseId", + column: x => x.PhaseId, + principalTable: "Dictionary", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_TrialExperience_Trial_TrialId", + column: x => x.TrialId, + principalTable: "Trial", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_TrialExperience_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "医生 - 项目临床经历"); + migrationBuilder.CreateTable( name: "TrialExternalUser", columns: table => new @@ -3322,46 +3421,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目 - 项目外部人员"); - migrationBuilder.CreateTable( - name: "TrialImageDownload", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TrialId = table.Column(type: "uniqueidentifier", nullable: false), - SubjectCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - IsSuccess = table.Column(type: "bit", nullable: false), - DownloadStartTime = table.Column(type: "datetime2", nullable: false), - DownloadEndTime = table.Column(type: "datetime2", nullable: true), - VisitName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - ImageType = table.Column(type: "int", nullable: false), - NoneDicomStudyCount = table.Column(type: "int", nullable: false), - DicomStudyCount = table.Column(type: "int", nullable: false), - ImageCount = table.Column(type: "int", nullable: false), - ImageSize = table.Column(type: "bigint", nullable: false), - IP = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_TrialImageDownload", x => x.Id); - table.ForeignKey( - name: "FK_TrialImageDownload_Trial_TrialId", - column: x => x.TrialId, - principalTable: "Trial", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_TrialImageDownload_User_CreateUserId", - column: x => x.CreateUserId, - principalTable: "User", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }, - comment: "项目 - 影像下载监控"); - migrationBuilder.CreateTable( name: "TrialPaymentPrice", columns: table => new @@ -3584,6 +3643,76 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目配置 - 访视记录"); + migrationBuilder.CreateTable( + name: "ReadingTableQuestionSystem", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReadingQuestionId = table.Column(type: "uniqueidentifier", nullable: false, comment: "系统表的问题Id ReadingQuestionSystem的Id"), + Type = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + ParentId = table.Column(type: "uniqueidentifier", nullable: true), + ParentTriggerValue = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "父问题触发值"), + QuestionName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "问题名称"), + IsRequired = table.Column(type: "int", nullable: false), + ShowOrder = table.Column(type: "int", nullable: false, comment: "排序号"), + TypeValue = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "值"), + IsEnable = table.Column(type: "bit", nullable: false, comment: "是否启用"), + Remark = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "备注"), + RelevanceId = table.Column(type: "uniqueidentifier", nullable: true, comment: "显示父问题"), + RelevanceValue = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "显示父问题的值"), + ShowQuestion = table.Column(type: "int", nullable: false, comment: "是否显示"), + MaxRowCount = table.Column(type: "int", nullable: true, comment: "最大问题数"), + ImageCount = table.Column(type: "int", nullable: true, comment: "图片数量"), + DataTableName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "数据表名称"), + DataTableColumn = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "数据列"), + DependParentId = table.Column(type: "uniqueidentifier", nullable: true, comment: "关联父问题"), + IsDepend = table.Column(type: "int", nullable: false, comment: "是否关联"), + TableQuestionType = table.Column(type: "int", nullable: true, comment: "表格问题类型"), + SystemCriterionId = table.Column(type: "uniqueidentifier", nullable: false, comment: "系统标准Id"), + QuestionMark = table.Column(type: "int", nullable: true, comment: "问题标识"), + DictionaryCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "字典code"), + ValueType = table.Column(type: "int", nullable: true, comment: "数值类型"), + Unit = table.Column(type: "int", nullable: true, comment: "单位"), + QuestionEnName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "问题英文名称"), + DataSource = table.Column(type: "int", nullable: false, comment: "数据来源"), + LimitEdit = table.Column(type: "int", nullable: false, comment: "限制编辑"), + MaxAnswerLength = table.Column(type: "int", nullable: true, comment: "最大答案长度"), + FileType = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true, comment: "文件类型"), + QuestionClassify = table.Column(type: "int", nullable: true, comment: "问题分类"), + IsCopy = table.Column(type: "bit", nullable: false, comment: "复制病灶的时候 是否复制这个问题"), + ClassifyTableQuestionId = table.Column(type: "uniqueidentifier", nullable: true, comment: "分类问题表格Id"), + ClassifyType = table.Column(type: "int", nullable: true, comment: "分类类型"), + ClassifyEditType = table.Column(type: "int", nullable: true), + ClassifyShowType = table.Column(type: "int", nullable: true), + ClassifyAlgorithms = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "分类算法"), + ExportIdentification = table.Column(type: "int", nullable: true, comment: "导出标识"), + ExportResultStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "导出结果"), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ReadingTableQuestionSystem", x => x.Id); + table.ForeignKey( + name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId", + column: x => x.ReadingQuestionId, + principalTable: "ReadingQuestionSystem", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_ReadingTableQuestionSystem_ReadingTableQuestionSystem_DependParentId", + column: x => x.DependParentId, + principalTable: "ReadingTableQuestionSystem", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_ReadingTableQuestionSystem_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "系统表格问题"); + migrationBuilder.CreateTable( name: "EnrollReadingCategory", columns: table => new @@ -3744,12 +3873,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations QuestionEnName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "问题英文名称"), GroupEnName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "问题英文分组"), ClassifyAlgorithms = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "分类算法"), + ClassifyType = table.Column(type: "int", nullable: true, comment: "分类类型"), + ClassifyEditType = table.Column(type: "int", nullable: true), + ClassifyShowType = table.Column(type: "int", nullable: true), ClassifyQuestionId = table.Column(type: "uniqueidentifier", nullable: true, comment: "分类问题Id"), IsCopyLesions = table.Column(type: "bit", nullable: false, comment: "是否复制病灶"), GroupId = table.Column(type: "uniqueidentifier", nullable: true, comment: "分组ID"), GroupClassify = table.Column(type: "int", nullable: true, comment: "分组分类"), QuestionClassify = table.Column(type: "int", nullable: true, comment: "问题分类"), HighlightAnswer = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "高亮问题的答案"), + ExportIdentification = table.Column(type: "int", nullable: true, comment: "导出标识"), + ExportResultStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "导出结果"), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false) }, @@ -4004,6 +4138,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations SMTPServerPort = table.Column(type: "int", nullable: false), SysEmailNoticeConfigId = table.Column(type: "uniqueidentifier", nullable: true), TrialReadingCriterionId = table.Column(type: "uniqueidentifier", nullable: true), + EmailDelaySeconds = table.Column(type: "int", nullable: true, comment: "邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件"), DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false), DeletedTime = table.Column(type: "datetime2", nullable: true), @@ -4106,6 +4241,39 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目 - 项目文档需要签署的用户类型"); + migrationBuilder.CreateTable( + name: "TrialExperienceCriteria", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DoctorId = table.Column(type: "uniqueidentifier", nullable: false), + TrialExperienceId = table.Column(type: "uniqueidentifier", nullable: false), + EvaluationCriteriaId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TrialExperienceCriteria", x => x.Id); + table.ForeignKey( + name: "FK_TrialExperienceCriteria_Dictionary_EvaluationCriteriaId", + column: x => x.EvaluationCriteriaId, + principalTable: "Dictionary", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_TrialExperienceCriteria_Doctor_DoctorId", + column: x => x.DoctorId, + principalTable: "Doctor", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_TrialExperienceCriteria_TrialExperience_TrialExperienceId", + column: x => x.TrialExperienceId, + principalTable: "TrialExperience", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "医生 - 项目临床经历评估标准"); + migrationBuilder.CreateTable( name: "TrialQCQuestionAnswer", columns: table => new @@ -4235,11 +4403,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations ShowOrder = table.Column(type: "int", nullable: false), TypeValue = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), IsEnable = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + Remark = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "注释"), RelevanceId = table.Column(type: "uniqueidentifier", nullable: true), RelevanceValue = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), ShowQuestion = table.Column(type: "int", nullable: false), MaxRowCount = table.Column(type: "int", nullable: true), + ImageCount = table.Column(type: "int", nullable: true, comment: "图片数量"), DataTableName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), DataTableColumn = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), TableQuestionType = table.Column(type: "int", nullable: true), @@ -4249,6 +4418,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations QuestionMark = table.Column(type: "int", nullable: true, comment: "问题标识"), DictionaryCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "字典code"), ValueType = table.Column(type: "int", nullable: true, comment: "数值类型"), + ClassifyAlgorithms = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "分类算法"), Unit = table.Column(type: "int", nullable: true, comment: "单位"), CustomUnit = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "自定义单位"), CustomCalculateMark = table.Column(type: "int", nullable: true, comment: "自定义计算标记"), @@ -4261,6 +4431,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations QuestionClassify = table.Column(type: "int", nullable: true, comment: "问题分类"), IsCopy = table.Column(type: "bit", nullable: false, comment: "复制病灶的时候 是否复制这个问题"), SystemTableQuestionId = table.Column(type: "uniqueidentifier", nullable: true, comment: "系统表格问题Id"), + ClassifyTableQuestionId = table.Column(type: "uniqueidentifier", nullable: true, comment: "分类问题表格Id"), + ClassifyType = table.Column(type: "int", nullable: true, comment: "分类类型"), + ClassifyEditType = table.Column(type: "int", nullable: true), + ClassifyShowType = table.Column(type: "int", nullable: true), + ExportIdentification = table.Column(type: "int", nullable: true, comment: "导出标识"), + ExportResultStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "导出结果"), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false) }, @@ -4487,48 +4663,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "阅片期和中心关联"); - migrationBuilder.CreateTable( - name: "SCPImageUpload", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CallingAE = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - CalledAE = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - CallingAEIP = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - StartTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - FileCount = table.Column(type: "int", nullable: false), - FileSize = table.Column(type: "bigint", nullable: false), - StudyCount = table.Column(type: "int", nullable: false), - TrialId = table.Column(type: "uniqueidentifier", nullable: false), - TrialSiteId = table.Column(type: "uniqueidentifier", nullable: false), - CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SCPImageUpload", x => x.Id); - table.ForeignKey( - name: "FK_SCPImageUpload_TrialSite_TrialSiteId", - column: x => x.TrialSiteId, - principalTable: "TrialSite", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_SCPImageUpload_Trial_TrialId", - column: x => x.TrialId, - principalTable: "Trial", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_SCPImageUpload_User_CreateUserId", - column: x => x.CreateUserId, - principalTable: "User", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }, - comment: "项目中心 - 影像推送记录"); - migrationBuilder.CreateTable( name: "TrialSiteDicomAE", columns: table => new @@ -4839,6 +4973,33 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "影像 - 非dicom检查关联文件表"); + migrationBuilder.CreateTable( + name: "PIAudit", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + VisitTaskId = table.Column(type: "uniqueidentifier", nullable: false), + ReplyContent = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + IsEnrollment = table.Column(type: "bit", nullable: true), + IsPDConfirm = table.Column(type: "bit", nullable: true), + PIAuditNote = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + NotAgreeReason = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PIAuditState = table.Column(type: "int", nullable: true), + PIAuditImagePath = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_PIAudit", x => x.Id); + table.ForeignKey( + name: "FK_PIAudit_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + migrationBuilder.CreateTable( name: "PreviousHistory", columns: table => new @@ -5395,7 +5556,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId", column: x => x.InstanceId, principalTable: "DicomInstance", - principalColumn: "SeqId"); + principalColumn: "Id"); table.ForeignKey( name: "FK_ReadingTableAnswerRowInfo_OrganInfo_OrganInfoId", column: x => x.OrganInfoId, @@ -5716,51 +5877,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目中心 - 推送Instance"); - migrationBuilder.CreateTable( - name: "SCPPatient", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PatientIdStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - PatientName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - PatientAge = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - PatientSex = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - PatientBirthDate = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), - EarliestStudyTime = table.Column(type: "datetime2", nullable: true), - LatestStudyTime = table.Column(type: "datetime2", nullable: true), - LatestPushTime = table.Column(type: "datetime2", nullable: false), - SubjectId = table.Column(type: "uniqueidentifier", nullable: true), - TrialId = table.Column(type: "uniqueidentifier", nullable: false), - TrialSiteId = table.Column(type: "uniqueidentifier", nullable: false), - CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SCPPatient", x => x.Id); - table.ForeignKey( - name: "FK_SCPPatient_TrialSite_TrialSiteId", - column: x => x.TrialSiteId, - principalTable: "TrialSite", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_SCPPatient_Trial_TrialId", - column: x => x.TrialId, - principalTable: "Trial", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_SCPPatient_User_CreateUserId", - column: x => x.CreateUserId, - principalTable: "User", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }, - comment: "项目中心 - 推送检查患者"); - migrationBuilder.CreateTable( name: "SCPSeries", columns: table => new @@ -5813,6 +5929,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations columns: table => new { SeqId = table.Column(type: "uniqueidentifier", nullable: false), + SubjectVisitId = table.Column(type: "uniqueidentifier", nullable: false), + TrialId = table.Column(type: "uniqueidentifier", nullable: false), + TrialSiteId = table.Column(type: "uniqueidentifier", nullable: false), PatientId = table.Column(type: "uniqueidentifier", nullable: false), StudyInstanceUid = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), StudyTime = table.Column(type: "datetime2", nullable: true), @@ -5837,9 +5956,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations CallingAE = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), CalledAE = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), IsUploadFinished = table.Column(type: "bit", nullable: false), - TrialId = table.Column(type: "uniqueidentifier", nullable: false), - TrialSiteId = table.Column(type: "uniqueidentifier", nullable: false), - SubjectVisitId = table.Column(type: "uniqueidentifier", nullable: true), Id = table.Column(type: "uniqueidentifier", nullable: false), DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false), @@ -5880,6 +5996,39 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目中心 - 推送检查"); + migrationBuilder.CreateTable( + name: "SCPStudySubjectVisit", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SubjectVisitId = table.Column(type: "uniqueidentifier", nullable: false), + TrialId = table.Column(type: "uniqueidentifier", nullable: false), + SubjectId = table.Column(type: "uniqueidentifier", nullable: false), + SCPStudyId = table.Column(type: "uniqueidentifier", nullable: false), + StudyId = table.Column(type: "uniqueidentifier", nullable: true), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SCPStudySubjectVisit", x => x.Id); + table.ForeignKey( + name: "FK_SCPStudySubjectVisit_SCPStudy_SCPStudyId", + column: x => x.SCPStudyId, + principalTable: "SCPStudy", + principalColumn: "SeqId", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_SCPStudySubjectVisit_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "访视检查关联表"); + migrationBuilder.CreateTable( name: "StudyMonitor", columns: table => new @@ -5935,6 +6084,28 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "项目 - 影像上传监控"); + migrationBuilder.CreateTable( + name: "SubejctVisitDownload", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + IP = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + SubjectVisitId = table.Column(type: "uniqueidentifier", nullable: false), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SubejctVisitDownload", x => x.Id); + table.ForeignKey( + name: "FK_SubejctVisitDownload_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "访视下载记录"); + migrationBuilder.CreateTable( name: "Subject", columns: table => new @@ -6104,6 +6275,46 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "受试者 - 参与附加评估标准配置"); + migrationBuilder.CreateTable( + name: "SubjectPatient", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SubjectId = table.Column(type: "uniqueidentifier", nullable: false), + PatientId = table.Column(type: "uniqueidentifier", nullable: false), + IsBinded = table.Column(type: "bit", nullable: false), + DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false), + DeletedTime = table.Column(type: "datetime2", nullable: true), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SubjectPatient", x => x.Id); + table.ForeignKey( + name: "FK_SubjectPatient_SCPPatient_PatientId", + column: x => x.PatientId, + principalTable: "SCPPatient", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_SubjectPatient_Subject_SubjectId", + column: x => x.SubjectId, + principalTable: "Subject", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_SubjectPatient_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "受试者患者绑定关系"); + migrationBuilder.CreateTable( name: "SubjectUser", columns: table => new @@ -6217,6 +6428,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations CloseTheReason = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "关闭一致性质疑原因"), SubmitUserId = table.Column(type: "uniqueidentifier", nullable: true), ReadingStatus = table.Column(type: "int", nullable: false), + VisitImageZipSize = table.Column(type: "bigint", nullable: false), + VisitImageFileCount = table.Column(type: "int", nullable: false), + VisitImageZipPath = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PackState = table.Column(type: "int", nullable: false), DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false), DeletedTime = table.Column(type: "datetime2", nullable: true), @@ -6285,6 +6500,54 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }, comment: "受试者访视"); + migrationBuilder.CreateTable( + name: "TrialImageDownload", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TrialId = table.Column(type: "uniqueidentifier", nullable: false), + SubjectId = table.Column(type: "uniqueidentifier", nullable: false), + TrialSiteCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "一致性分析的就显示一致性分析的中心"), + SubjectCode = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + IsSuccess = table.Column(type: "bit", nullable: false), + DownloadStartTime = table.Column(type: "datetime2", nullable: false), + DownloadEndTime = table.Column(type: "datetime2", nullable: true), + VisitName = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + ImageType = table.Column(type: "int", nullable: false), + NoneDicomStudyCount = table.Column(type: "int", nullable: false), + DicomStudyCount = table.Column(type: "int", nullable: false), + ImageCount = table.Column(type: "int", nullable: false), + ImageSize = table.Column(type: "bigint", nullable: false), + IP = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TrialImageDownload", x => x.Id); + table.ForeignKey( + name: "FK_TrialImageDownload_Subject_SubjectId", + column: x => x.SubjectId, + principalTable: "Subject", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_TrialImageDownload_Trial_TrialId", + column: x => x.TrialId, + principalTable: "Trial", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_TrialImageDownload_User_CreateUserId", + column: x => x.CreateUserId, + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }, + comment: "项目 - 影像下载监控"); + migrationBuilder.CreateTable( name: "SubjectCriteriaEvaluationVisitFilter", columns: table => new @@ -6354,13 +6617,13 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId", column: x => x.SeriesId, principalTable: "DicomSeries", - principalColumn: "SeqId", + principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId", column: x => x.StudyId, principalTable: "DicomStudy", - principalColumn: "SeqId", + principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_ReadingQuestionCriterionTrial_TrialReadingCriterionId", @@ -6450,13 +6713,13 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations ReReadingApplyState = table.Column(type: "int", nullable: false, comment: "重阅状态"), DoctorUserId = table.Column(type: "uniqueidentifier", nullable: true), TrialReadingCriterionId = table.Column(type: "uniqueidentifier", nullable: false), - JudgeVisitTaskId = table.Column(type: "uniqueidentifier", nullable: true, comment: "裁判任务的Id"), + JudgeVisitTaskId = table.Column(type: "uniqueidentifier", nullable: true, comment: "在访视或者全局任务上记录 裁判任务的Id"), ReadingTaskState = table.Column(type: "int", nullable: false, comment: "任务阅片状态"), SignTime = table.Column(type: "datetime2", nullable: true, comment: "签名时间"), SuggesteFinishedTime = table.Column(type: "datetime2", nullable: true), IsReReadingCreate = table.Column(type: "bit", nullable: false, comment: "是否是重阅产生的,方便过滤数据"), IsPMSetBack = table.Column(type: "bit", nullable: false, comment: "PM 对该任务进行了回退 影响的任务不设置"), - JudgeResultTaskId = table.Column(type: "uniqueidentifier", nullable: true, comment: "裁判结果的任务ID"), + JudgeResultTaskId = table.Column(type: "uniqueidentifier", nullable: true, comment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)"), VisitTaskNum = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, comment: "随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"), FirstReadingTime = table.Column(type: "datetime2", nullable: true, comment: "首次阅片时间"), IsGlobalHaveUpdate = table.Column(type: "bit", nullable: true, comment: "全局是否有更新"), @@ -6481,6 +6744,22 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations IsClinicalDataSign = table.Column(type: "bit", nullable: false, comment: "临床数据是否签名"), IsFrontTaskNeedSignButNotSign = table.Column(type: "bit", nullable: false, comment: "前序任务需要签名 但是未签名"), ImageStudyState = table.Column(type: "int", nullable: false), + ExpetidEmailNoticeTime = table.Column(type: "datetime2", nullable: true, comment: "通知IR加急阅片时间"), + PIAuditNote = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PIAuditImagePath = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + NotAgreeReason = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + PIAuditState = table.Column(type: "int", nullable: false), + IsEnrollment = table.Column(type: "bit", nullable: true), + IsPDConfirm = table.Column(type: "bit", nullable: true), + FirstAuditUserId = table.Column(type: "uniqueidentifier", nullable: true), + FirstAuditTime = table.Column(type: "datetime2", nullable: true), + LatestReplyUserId = table.Column(type: "uniqueidentifier", nullable: true), + LatestReplyTime = table.Column(type: "datetime2", nullable: true), + SubjectCriterionClaimUserId = table.Column(type: "uniqueidentifier", nullable: true), + ReportExportDate = table.Column(type: "datetime2", nullable: true), + ReportExportNum = table.Column(type: "int", nullable: true), + ReportExportUrl = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + IsConfirmReminder = table.Column(type: "bit", nullable: false), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false), UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), @@ -6528,6 +6807,21 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations column: x => x.DoctorUserId, principalTable: "User", principalColumn: "Id"); + table.ForeignKey( + name: "FK_VisitTask_User_FirstAuditUserId", + column: x => x.FirstAuditUserId, + principalTable: "User", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_VisitTask_User_LatestReplyUserId", + column: x => x.LatestReplyUserId, + principalTable: "User", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_VisitTask_User_SubjectCriterionClaimUserId", + column: x => x.SubjectCriterionClaimUserId, + principalTable: "User", + principalColumn: "Id"); table.ForeignKey( name: "FK_VisitTask_VisitTask_JudgeResultTaskId", column: x => x.JudgeResultTaskId, @@ -6721,7 +7015,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations State = table.Column(type: "int", nullable: false), TrialSiteId = table.Column(type: "uniqueidentifier", nullable: true), TrialId = table.Column(type: "uniqueidentifier", nullable: true), - ScreenshotListStr = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: false), + ScreenshotListStr = table.Column(type: "nvarchar(max)", nullable: false), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false), UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), @@ -7069,6 +7363,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "DataInspection", column: "VisitTaskId"); + migrationBuilder.CreateIndex( + name: "IX_DicomAE_CreateUserId", + table: "DicomAE", + column: "CreateUserId"); + migrationBuilder.CreateIndex( name: "IX_DicomInstance_CreateUserId", table: "DicomInstance", @@ -7264,6 +7563,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "EnrollReadingCriterion", column: "EnrollId"); + migrationBuilder.CreateIndex( + name: "IX_EventStoreRecord_CreateUserId", + table: "EventStoreRecord", + column: "CreateUserId"); + migrationBuilder.CreateIndex( name: "IX_ExchangeRate_CreateUserId", table: "ExchangeRate", @@ -7374,6 +7678,16 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "PaymentDetail", column: "CreateUserId"); + migrationBuilder.CreateIndex( + name: "IX_PIAudit_CreateUserId", + table: "PIAudit", + column: "CreateUserId"); + + migrationBuilder.CreateIndex( + name: "IX_PIAudit_VisitTaskId", + table: "PIAudit", + column: "VisitTaskId"); + migrationBuilder.CreateIndex( name: "IX_Postgraduate_CreateUserId", table: "Postgraduate", @@ -7829,6 +8143,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "ReadingTableQuestionSystem", column: "DependParentId"); + migrationBuilder.CreateIndex( + name: "IX_ReadingTableQuestionSystem_ReadingQuestionId", + table: "ReadingTableQuestionSystem", + column: "ReadingQuestionId"); + migrationBuilder.CreateIndex( name: "IX_ReadingTableQuestionTrial_CreateUserId", table: "ReadingTableQuestionTrial", @@ -7959,16 +8278,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "SCPImageUpload", column: "CreateUserId"); - migrationBuilder.CreateIndex( - name: "IX_SCPImageUpload_TrialId", - table: "SCPImageUpload", - column: "TrialId"); - - migrationBuilder.CreateIndex( - name: "IX_SCPImageUpload_TrialSiteId", - table: "SCPImageUpload", - column: "TrialSiteId"); - migrationBuilder.CreateIndex( name: "IX_SCPInstance_CreateUserId", table: "SCPInstance", @@ -7989,21 +8298,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "SCPPatient", column: "CreateUserId"); - migrationBuilder.CreateIndex( - name: "IX_SCPPatient_SubjectId", - table: "SCPPatient", - column: "SubjectId"); - - migrationBuilder.CreateIndex( - name: "IX_SCPPatient_TrialId", - table: "SCPPatient", - column: "TrialId"); - - migrationBuilder.CreateIndex( - name: "IX_SCPPatient_TrialSiteId", - table: "SCPPatient", - column: "TrialSiteId"); - migrationBuilder.CreateIndex( name: "IX_SCPSeries_CreateUserId", table: "SCPSeries", @@ -8039,6 +8333,26 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "SCPStudy", column: "TrialSiteId"); + migrationBuilder.CreateIndex( + name: "IX_SCPStudySubjectVisit_CreateUserId", + table: "SCPStudySubjectVisit", + column: "CreateUserId"); + + migrationBuilder.CreateIndex( + name: "IX_SCPStudySubjectVisit_SCPStudyId", + table: "SCPStudySubjectVisit", + column: "SCPStudyId"); + + migrationBuilder.CreateIndex( + name: "IX_SCPStudySubjectVisit_SubjectId", + table: "SCPStudySubjectVisit", + column: "SubjectId"); + + migrationBuilder.CreateIndex( + name: "IX_SCPStudySubjectVisit_SubjectVisitId", + table: "SCPStudySubjectVisit", + column: "SubjectVisitId"); + migrationBuilder.CreateIndex( name: "IX_ShortcutKey_CreateUserId", table: "ShortcutKey", @@ -8084,6 +8398,16 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "StudyMonitor", column: "TrialId"); + migrationBuilder.CreateIndex( + name: "IX_SubejctVisitDownload_CreateUserId", + table: "SubejctVisitDownload", + column: "CreateUserId"); + + migrationBuilder.CreateIndex( + name: "IX_SubejctVisitDownload_SubjectVisitId", + table: "SubejctVisitDownload", + column: "SubjectVisitId"); + migrationBuilder.CreateIndex( name: "IX_Subject_CreateUserId", table: "Subject", @@ -8194,6 +8518,26 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "SubjectCriteriaEvaluationVisitStudyFilter", column: "TrialReadingCriterionId"); + migrationBuilder.CreateIndex( + name: "IX_SubjectPatient_CreateUserId", + table: "SubjectPatient", + column: "CreateUserId"); + + migrationBuilder.CreateIndex( + name: "IX_SubjectPatient_PatientId", + table: "SubjectPatient", + column: "PatientId"); + + migrationBuilder.CreateIndex( + name: "IX_SubjectPatient_SubjectId", + table: "SubjectPatient", + column: "SubjectId"); + + migrationBuilder.CreateIndex( + name: "IX_SubjectPatientSCPStudy_CreateUserId", + table: "SubjectPatientSCPStudy", + column: "CreateUserId"); + migrationBuilder.CreateIndex( name: "IX_SubjectUser_CreateUserId", table: "SubjectUser", @@ -8504,11 +8848,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "Trial", column: "CreateUserId"); - migrationBuilder.CreateIndex( - name: "IX_Trial_CROId", - table: "Trial", - column: "CROId"); - migrationBuilder.CreateIndex( name: "IX_Trial_IndicationTypeId", table: "Trial", @@ -8529,11 +8868,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "Trial", column: "ReviewModeId"); - migrationBuilder.CreateIndex( - name: "IX_Trial_SponsorId", - table: "Trial", - column: "SponsorId"); - migrationBuilder.CreateIndex( name: "IX_TrialBodyPart_CreateUserId", table: "TrialBodyPart", @@ -8699,6 +9033,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "TrialExperience", column: "PhaseId"); + migrationBuilder.CreateIndex( + name: "IX_TrialExperience_TrialId", + table: "TrialExperience", + column: "TrialId"); + migrationBuilder.CreateIndex( name: "IX_TrialExperienceCriteria_DoctorId", table: "TrialExperienceCriteria", @@ -8729,6 +9068,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "TrialImageDownload", column: "CreateUserId"); + migrationBuilder.CreateIndex( + name: "IX_TrialImageDownload_SubjectId", + table: "TrialImageDownload", + column: "SubjectId"); + migrationBuilder.CreateIndex( name: "IX_TrialImageDownload_TrialId", table: "TrialImageDownload", @@ -9061,6 +9405,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "VisitTask", column: "DoctorUserId"); + migrationBuilder.CreateIndex( + name: "IX_VisitTask_FirstAuditUserId", + table: "VisitTask", + column: "FirstAuditUserId"); + migrationBuilder.CreateIndex( name: "IX_VisitTask_JudgeResultTaskId", table: "VisitTask", @@ -9071,6 +9420,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "VisitTask", column: "JudgeVisitTaskId"); + migrationBuilder.CreateIndex( + name: "IX_VisitTask_LatestReplyUserId", + table: "VisitTask", + column: "LatestReplyUserId"); + migrationBuilder.CreateIndex( name: "IX_VisitTask_SouceReadModuleId", table: "VisitTask", @@ -9081,6 +9435,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "VisitTask", column: "SourceSubjectVisitId"); + migrationBuilder.CreateIndex( + name: "IX_VisitTask_SubjectCriterionClaimUserId", + table: "VisitTask", + column: "SubjectCriterionClaimUserId"); + migrationBuilder.CreateIndex( name: "IX_VisitTask_SubjectId", table: "VisitTask", @@ -9294,6 +9653,14 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations principalTable: "VisitTask", principalColumn: "Id"); + migrationBuilder.AddForeignKey( + name: "FK_DicomAE_User_CreateUserId", + table: "DicomAE", + column: "CreateUserId", + principalTable: "User", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + migrationBuilder.AddForeignKey( name: "FK_DicomInstance_DicomSeries_SeriesId", table: "DicomInstance", @@ -9419,6 +9786,14 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations principalTable: "VisitTask", principalColumn: "Id"); + migrationBuilder.AddForeignKey( + name: "FK_PIAudit_VisitTask_VisitTaskId", + table: "PIAudit", + column: "VisitTaskId", + principalTable: "VisitTask", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + migrationBuilder.AddForeignKey( name: "FK_PreviousHistory_SubjectVisit_SubjectVisitId", table: "PreviousHistory", @@ -9651,13 +10026,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations principalColumn: "SeqId", onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_SCPPatient_Subject_SubjectId", - table: "SCPPatient", - column: "SubjectId", - principalTable: "Subject", - principalColumn: "Id"); - migrationBuilder.AddForeignKey( name: "FK_SCPSeries_SCPStudy_StudyId", table: "SCPSeries", @@ -9671,7 +10039,24 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations table: "SCPStudy", column: "SubjectVisitId", principalTable: "SubjectVisit", - principalColumn: "Id"); + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_SCPStudySubjectVisit_SubjectVisit_SubjectVisitId", + table: "SCPStudySubjectVisit", + column: "SubjectVisitId", + principalTable: "SubjectVisit", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_SCPStudySubjectVisit_Subject_SubjectId", + table: "SCPStudySubjectVisit", + column: "SubjectId", + principalTable: "Subject", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); migrationBuilder.AddForeignKey( name: "FK_StudyMonitor_SubjectVisit_SubjectVisitId", @@ -9697,6 +10082,14 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations principalColumn: "SeqId", onDelete: ReferentialAction.Cascade); + migrationBuilder.AddForeignKey( + name: "FK_SubejctVisitDownload_SubjectVisit_SubjectVisitId", + table: "SubejctVisitDownload", + column: "SubjectVisitId", + principalTable: "SubjectVisit", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + migrationBuilder.AddForeignKey( name: "FK_Subject_SubjectVisit_FinalSubjectVisitId", table: "Subject", @@ -9719,10 +10112,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations name: "FK_User_Doctor_DoctorId", table: "User"); - migrationBuilder.DropForeignKey( - name: "FK_CROCompany_User_CreateUserId", - table: "CROCompany"); - migrationBuilder.DropForeignKey( name: "FK_Dictionary_User_CreateUserId", table: "Dictionary"); @@ -9735,10 +10124,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations name: "FK_Site_User_CreateUserId", table: "Site"); - migrationBuilder.DropForeignKey( - name: "FK_Sponsor_User_CreateUserId", - table: "Sponsor"); - migrationBuilder.DropForeignKey( name: "FK_Subject_User_CreateUserId", table: "Subject"); @@ -9812,9 +10197,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "CriterionNidusTrial"); + migrationBuilder.DropTable( + name: "CROCompany"); + migrationBuilder.DropTable( name: "DataInspection"); + migrationBuilder.DropTable( + name: "DicomAE"); + migrationBuilder.DropTable( name: "DoctorCriterionFile"); @@ -9842,6 +10233,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "EnrollReadingCriterion"); + migrationBuilder.DropTable( + name: "EventStoreRecord"); + migrationBuilder.DropTable( name: "ExchangeRate"); @@ -9875,6 +10269,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "PaymentDetail"); + migrationBuilder.DropTable( + name: "PIAudit"); + migrationBuilder.DropTable( name: "Postgraduate"); @@ -9935,9 +10332,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "ReadingPeriodSite"); - migrationBuilder.DropTable( - name: "ReadingQuestionSystem"); - migrationBuilder.DropTable( name: "ReadingSystemCriterionDictionary"); @@ -9971,12 +10365,21 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "SCPInstance"); + migrationBuilder.DropTable( + name: "SCPStudySubjectVisit"); + migrationBuilder.DropTable( name: "ShortcutKey"); + migrationBuilder.DropTable( + name: "Sponsor"); + migrationBuilder.DropTable( name: "StudyMonitor"); + migrationBuilder.DropTable( + name: "SubejctVisitDownload"); + migrationBuilder.DropTable( name: "SubjectAdditionalEvaluationResult"); @@ -9992,6 +10395,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "SubjectCriteriaEvaluationVisitStudyFilter"); + migrationBuilder.DropTable( + name: "SubjectPatient"); + + migrationBuilder.DropTable( + name: "SubjectPatientSCPStudy"); + migrationBuilder.DropTable( name: "SubjectUser"); @@ -10184,15 +10593,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "TaskMedicalReview"); - migrationBuilder.DropTable( - name: "ReadingQuestionCriterionSystem"); - migrationBuilder.DropTable( name: "ReadingTableAnswerRowInfo"); migrationBuilder.DropTable( name: "ReadingTableQuestionTrial"); + migrationBuilder.DropTable( + name: "ReadingQuestionSystem"); + migrationBuilder.DropTable( name: "ClinicalForm"); @@ -10244,6 +10653,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "ReadingQuestionTrial"); + migrationBuilder.DropTable( + name: "ReadingQuestionCriterionSystem"); + migrationBuilder.DropTable( name: "ClinicalDataTrialSet"); @@ -10307,15 +10719,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations migrationBuilder.DropTable( name: "Trial"); - migrationBuilder.DropTable( - name: "CROCompany"); - migrationBuilder.DropTable( name: "Dictionary"); - migrationBuilder.DropTable( - name: "Sponsor"); - migrationBuilder.DropTable( name: "Hospital"); diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/IRaCISDBContextModelSnapshot.cs b/IRaCIS.Core.Infra.EFCore/Migrations/IRaCISDBContextModelSnapshot.cs index e76827b1b..5ed62beea 100644 --- a/IRaCIS.Core.Infra.EFCore/Migrations/IRaCISDBContextModelSnapshot.cs +++ b/IRaCIS.Core.Infra.EFCore/Migrations/IRaCISDBContextModelSnapshot.cs @@ -775,6 +775,62 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomAE", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CalledAE") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("IP") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("IsTestOK") + .HasColumnType("bit"); + + b.Property("LatestTestTime") + .HasColumnType("datetime2"); + + b.Property("Modality") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("Port") + .HasColumnType("int"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.ToTable("DicomAE", t => + { + t.HasComment("医院dicomAE 配置"); + }); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => { b.Property("SeqId") @@ -1153,6 +1209,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); + b.Property("PatientIdStr") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("PatientName") .IsRequired() .HasMaxLength(400) @@ -3209,6 +3270,58 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.PIAudit", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("IsEnrollment") + .HasColumnType("bit"); + + b.Property("IsPDConfirm") + .HasColumnType("bit"); + + b.Property("NotAgreeReason") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditImagePath") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditNote") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditState") + .HasColumnType("int"); + + b.Property("ReplyContent") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("VisitTaskId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.HasIndex("VisitTaskId"); + + b.ToTable("PIAudit"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => { b.Property("Id") @@ -5421,6 +5534,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("eCRF报告是否显示在图像页面"); + b.Property("PIReadingScopenEnum") + .HasColumnType("int"); + + b.Property("ReadingDivisionEnum") + .HasColumnType("int"); + b.Property("ReadingInfoSignTime") .HasColumnType("datetime2") .HasComment("阅片信息签名时间"); @@ -7134,20 +7253,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("StudyCount") .HasColumnType("int"); - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - b.HasKey("Id"); b.HasIndex("CreateUserId"); - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - b.ToTable("SCPImageUpload", t => { t.HasComment("项目中心 - 影像推送记录"); @@ -7317,15 +7426,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); - b.Property("SubjectId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialId") - .HasColumnType("uniqueidentifier"); - - b.Property("TrialSiteId") - .HasColumnType("uniqueidentifier"); - b.Property("UpdateTime") .HasColumnType("datetime2"); @@ -7336,12 +7436,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasIndex("CreateUserId"); - b.HasIndex("SubjectId"); - - b.HasIndex("TrialId"); - - b.HasIndex("TrialSiteId"); - b.ToTable("SCPPatient", t => { t.HasComment("项目中心 - 推送检查患者"); @@ -7611,7 +7705,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("StudyTime") .HasColumnType("datetime2"); - b.Property("SubjectVisitId") + b.Property("SubjectVisitId") .HasColumnType("uniqueidentifier"); b.Property("TrialId") @@ -7649,6 +7743,54 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudySubjectVisit", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("SCPStudyId") + .HasColumnType("uniqueidentifier"); + + b.Property("StudyId") + .HasColumnType("uniqueidentifier"); + + b.Property("SubjectId") + .HasColumnType("uniqueidentifier"); + + b.Property("SubjectVisitId") + .HasColumnType("uniqueidentifier"); + + b.Property("TrialId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.HasIndex("SCPStudyId"); + + b.HasIndex("SubjectId"); + + b.HasIndex("SubjectVisitId"); + + b.ToTable("SCPStudySubjectVisit", t => + { + t.HasComment("访视检查关联表"); + }); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => { b.Property("Id") @@ -7949,6 +8091,37 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubejctVisitDownload", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("IP") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("SubjectVisitId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.HasIndex("SubjectVisitId"); + + b.ToTable("SubejctVisitDownload", t => + { + t.HasComment("访视下载记录"); + }); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => { b.Property("Id") @@ -8335,6 +8508,103 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations }); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectPatient", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("DeleteUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("DeletedTime") + .HasColumnType("datetime2"); + + b.Property("IsBinded") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("PatientId") + .HasColumnType("uniqueidentifier"); + + b.Property("SubjectId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.HasIndex("PatientId"); + + b.HasIndex("SubjectId"); + + b.ToTable("SubjectPatient", t => + { + t.HasComment("受试者患者绑定关系"); + }); + }); + + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectPatientSCPStudy", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("DeleteUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("DeletedTime") + .HasColumnType("datetime2"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("PatientId") + .HasColumnType("uniqueidentifier"); + + b.Property("SCPStudyId") + .HasColumnType("uniqueidentifier"); + + b.Property("SubjectId") + .HasColumnType("uniqueidentifier"); + + b.Property("TrialId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("CreateUserId"); + + b.ToTable("SubjectPatientSCPStudy", t => + { + t.HasComment("受试者患者检查绑定关系"); + }); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => { b.Property("Id") @@ -8531,6 +8801,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("PDState") .HasColumnType("int"); + b.Property("PackState") + .HasColumnType("int"); + b.Property("PreliminaryAuditTime") .HasColumnType("datetime2"); @@ -8594,6 +8867,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("int") .HasComment("0 未执行 1 执行了 2 不可用"); + b.Property("VisitImageFileCount") + .HasColumnType("int"); + + b.Property("VisitImageZipPath") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("VisitImageZipSize") + .HasColumnType("bigint"); + b.Property("VisitName") .IsRequired() .HasMaxLength(400) @@ -10089,6 +10373,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); + b.Property("AuthorizationDate") + .HasColumnType("datetime2"); + + b.Property("AuthorizationDuration") + .HasColumnType("int"); + + b.Property("AuthorizationEncrypt") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("BlindBaseLineName") .IsRequired() .HasMaxLength(400) @@ -10103,6 +10398,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("CRO") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("CROId") .HasColumnType("uniqueidentifier"); @@ -10116,12 +10416,27 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("Code") .HasColumnType("int"); + b.Property("ContactPhone") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("ContactUser") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasColumnType("uniqueidentifier"); + b.Property("CriterionTypes") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("DeclarationTypes") .IsRequired() .HasMaxLength(400) @@ -10164,6 +10479,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("int") .HasComment("SMTP端口"); + b.Property("EnrollConfirmDefaultUserType") + .HasColumnType("int"); + b.Property("ExpectedPatients") .HasColumnType("int"); @@ -10204,6 +10522,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("是否配置过邮箱"); + b.Property("IsDeclaration") + .HasColumnType("bit"); + b.Property("IsDeleted") .HasColumnType("bit"); @@ -10231,6 +10552,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("跨项目复制"); + b.Property("IsMedicalReview") + .HasColumnType("bit"); + b.Property("IsNoticeSubjectCodeRule") .HasColumnType("bit") .HasComment("是否 提醒受试者编号规则"); @@ -10283,6 +10607,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("nvarchar(400)") .HasComment("主研单位"); + b.Property("MedicineName") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("MessageFromClient") .IsRequired() .HasMaxLength(400) @@ -10309,6 +10638,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("nvarchar(400)") .HasComment("出组后计划外访视名称"); + b.Property("PDProgressDefaultUserType") + .HasColumnType("int"); + b.Property("PhaseId") .HasColumnType("uniqueidentifier"); @@ -10366,6 +10698,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); + b.Property("Sponsor") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("SponsorId") .HasColumnType("uniqueidentifier"); @@ -10407,12 +10744,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("TrialFinishedTime") .HasColumnType("datetime2"); - b.Property("TrialObjectNameList") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasComment("项目术语配置Json字符串"); - b.Property("TrialStatusStr") .IsRequired() .HasMaxLength(400) @@ -10429,6 +10760,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("UpdateUserId") .HasColumnType("uniqueidentifier"); + b.Property("VisitBaseDataDes") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("VisitPlanConfirmed") .HasColumnType("bit"); @@ -10439,8 +10775,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasKey("Id"); - b.HasIndex("CROId"); - b.HasIndex("CreateUserId"); b.HasIndex("IndicationTypeId"); @@ -10451,8 +10785,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasIndex("ReviewModeId"); - b.HasIndex("SponsorId"); - b.ToTable("Trial", t => { t.HasComment("项目 - 项目基本信息与配置"); @@ -12596,6 +12928,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("自动切换下一个任务"); + b.Property("CheckCode") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("Code") .HasColumnType("int"); @@ -12605,12 +12942,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Property("CreateUserId") .HasColumnType("uniqueidentifier"); - b.Property("DeleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeletedTime") - .HasColumnType("datetime2"); - b.Property("DepartmentName") .IsRequired() .HasMaxLength(400) @@ -12635,9 +12966,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(400) .HasColumnType("nvarchar(400)"); - b.Property("IsDeleted") - .HasColumnType("bit"); - b.Property("IsFirstAdd") .HasColumnType("bit") .HasComment("首次登录需要修改密码"); @@ -13321,6 +13649,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("datetime2") .HasComment("通知IR加急阅片时间"); + b.Property("FirstAuditTime") + .HasColumnType("datetime2"); + + b.Property("FirstAuditUserId") + .HasColumnType("uniqueidentifier"); + b.Property("FirstReadingTime") .HasColumnType("datetime2") .HasComment("首次阅片时间"); @@ -13348,6 +13682,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("临床数据是否签名"); + b.Property("IsConfirmReminder") + .HasColumnType("bit"); + + b.Property("IsEnrollment") + .HasColumnType("bit"); + b.Property("IsFrontTaskNeedSignButNotSign") .HasColumnType("bit") .HasComment("前序任务需要签名 但是未签名"); @@ -13372,6 +13712,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("bit") .HasComment("临床数据"); + b.Property("IsPDConfirm") + .HasColumnType("bit"); + b.Property("IsPMSetBack") .HasColumnType("bit") .HasComment("PM 对该任务进行了回退 影响的任务不设置"); @@ -13411,6 +13754,30 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("uniqueidentifier") .HasComment("在访视或者全局任务上记录 裁判任务的Id"); + b.Property("LatestReplyTime") + .HasColumnType("datetime2"); + + b.Property("LatestReplyUserId") + .HasColumnType("uniqueidentifier"); + + b.Property("NotAgreeReason") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditImagePath") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditNote") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PIAuditState") + .HasColumnType("int"); + b.Property("PastResultTaskIds") .IsRequired() .HasMaxLength(2000) @@ -13435,6 +13802,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("nvarchar(2000)") .HasComment("关联的访视任务ID (当前任务是访视任务的话会有自己)"); + b.Property("ReportExportDate") + .HasColumnType("datetime2"); + + b.Property("ReportExportNum") + .HasColumnType("int"); + + b.Property("ReportExportUrl") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + b.Property("ReportRelatedTaskIds") .IsRequired() .HasMaxLength(2000) @@ -13452,6 +13830,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasColumnType("uniqueidentifier") .HasComment("任务来源访视Id 方便回更访视读片状态"); + b.Property("SubjectCriterionClaimUserId") + .HasColumnType("uniqueidentifier"); + b.Property("SubjectId") .HasColumnType("uniqueidentifier"); @@ -13513,14 +13894,20 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasIndex("DoctorUserId"); + b.HasIndex("FirstAuditUserId"); + b.HasIndex("JudgeResultTaskId"); b.HasIndex("JudgeVisitTaskId"); + b.HasIndex("LatestReplyUserId"); + b.HasIndex("SouceReadModuleId"); b.HasIndex("SourceSubjectVisitId"); + b.HasIndex("SubjectCriterionClaimUserId"); + b.HasIndex("SubjectId"); b.HasIndex("TrialId"); @@ -13758,6 +14145,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); + b.Property("TestDate") + .HasColumnType("date"); + b.Property("TestEnumList") .IsRequired() .HasMaxLength(1000) @@ -13997,6 +14387,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("VisitTask"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomAE", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -14499,6 +14900,25 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("OrganInfo"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.PIAudit", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask") + .WithMany() + .HasForeignKey("VisitTaskId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + + b.Navigation("VisitTask"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -15578,23 +15998,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - b.Navigation("CreateUser"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); }); modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b => @@ -15633,29 +16037,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") - .WithMany() - .HasForeignKey("SubjectId"); - - b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") - .WithMany() - .HasForeignKey("TrialId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("IRaCIS.Core.Domain.Models.TrialSite", "TrialSite") - .WithMany() - .HasForeignKey("TrialSiteId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - b.Navigation("CreateUser"); - - b.Navigation("Subject"); - - b.Navigation("Trial"); - - b.Navigation("TrialSite"); }); modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => @@ -15694,7 +16076,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") .WithMany() - .HasForeignKey("SubjectVisitId"); + .HasForeignKey("SubjectVisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial") .WithMany() @@ -15719,6 +16103,41 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("TrialSite"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudySubjectVisit", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.SCPStudy", "SCPStudy") + .WithMany("SCPStudySubjectVisitList") + .HasForeignKey("SCPStudyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") + .WithMany() + .HasForeignKey("SubjectId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") + .WithMany("SCPStudySubjectVisitList") + .HasForeignKey("SubjectVisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + + b.Navigation("SCPStudy"); + + b.Navigation("Subject"); + + b.Navigation("SubjectVisit"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -15818,6 +16237,25 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("Trial"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubejctVisitDownload", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit") + .WithMany() + .HasForeignKey("SubjectVisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + + b.Navigation("SubjectVisit"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.Subject", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -16006,6 +16444,44 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("TrialReadingCriterion"); }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectPatient", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.SCPPatient", "Patient") + .WithMany("SubjectPatientList") + .HasForeignKey("PatientId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") + .WithMany("SubjectPatientList") + .HasForeignKey("SubjectId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + + b.Navigation("Patient"); + + b.Navigation("Subject"); + }); + + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectPatientSCPStudy", b => + { + b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") + .WithMany() + .HasForeignKey("CreateUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CreateUser"); + }); + modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b => { b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") @@ -16533,10 +17009,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations modelBuilder.Entity("IRaCIS.Core.Domain.Models.Trial", b => { - b.HasOne("IRaCIS.Core.Domain.Models.CRO", "CRO") - .WithMany() - .HasForeignKey("CROId"); - b.HasOne("IRaCIS.Core.Domain.Models.User", "CreateUser") .WithMany() .HasForeignKey("CreateUserId") @@ -16561,11 +17033,37 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .WithMany() .HasForeignKey("ReviewModeId"); - b.HasOne("IRaCIS.Core.Domain.Models.Sponsor", "Sponsor") - .WithMany() - .HasForeignKey("SponsorId"); + b.OwnsMany("IRaCIS.Core.Domain.Models.TrialObjectNameConfig", "TrialObjectNameList", b1 => + { + b1.Property("TrialId") + .HasColumnType("uniqueidentifier"); - b.Navigation("CRO"); + b1.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b1.Property("IsDefault") + .HasColumnType("bit"); + + b1.Property("Name") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b1.Property("TrialName") + .IsRequired() + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b1.HasKey("TrialId", "Id"); + + b1.ToTable("Trial"); + + b1.ToJson("TrialObjectNameList"); + + b1.WithOwner() + .HasForeignKey("TrialId"); + }); b.Navigation("CreateUser"); @@ -16577,7 +17075,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("ReviewMode"); - b.Navigation("Sponsor"); + b.Navigation("TrialObjectNameList"); }); modelBuilder.Entity("IRaCIS.Core.Domain.Models.TrialBodyPart", b => @@ -17525,6 +18023,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .WithMany("VisitTaskList") .HasForeignKey("DoctorUserId"); + b.HasOne("IRaCIS.Core.Domain.Models.User", "FirstAuditUser") + .WithMany() + .HasForeignKey("FirstAuditUserId"); + b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "JudgeResultTask") .WithMany() .HasForeignKey("JudgeResultTaskId"); @@ -17533,6 +18035,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .WithMany("JudgeVisitList") .HasForeignKey("JudgeVisitTaskId"); + b.HasOne("IRaCIS.Core.Domain.Models.User", "LatestReplyUser") + .WithMany() + .HasForeignKey("LatestReplyUserId"); + b.HasOne("IRaCIS.Core.Domain.Models.ReadModule", "ReadModule") .WithMany("ModuleTaskList") .HasForeignKey("SouceReadModuleId"); @@ -17541,6 +18047,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations .WithMany("VisitTaskList") .HasForeignKey("SourceSubjectVisitId"); + b.HasOne("IRaCIS.Core.Domain.Models.User", "SubjectCriterionClaimUser") + .WithMany() + .HasForeignKey("SubjectCriterionClaimUserId"); + b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject") .WithMany("SubjectVisitTaskList") .HasForeignKey("SubjectId") @@ -17563,16 +18073,22 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("DoctorUser"); + b.Navigation("FirstAuditUser"); + b.Navigation("JudgeResultTask"); b.Navigation("JudgeVisitTask"); + b.Navigation("LatestReplyUser"); + b.Navigation("ReadModule"); b.Navigation("SourceSubjectVisit"); b.Navigation("Subject"); + b.Navigation("SubjectCriterionClaimUser"); + b.Navigation("Trial"); b.Navigation("TrialReadingCriterion"); @@ -17817,6 +18333,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPPatient", b => { b.Navigation("SCPStudyList"); + + b.Navigation("SubjectPatientList"); }); modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b => @@ -17828,6 +18346,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations { b.Navigation("InstanceList"); + b.Navigation("SCPStudySubjectVisitList"); + b.Navigation("SeriesList"); }); @@ -17858,6 +18378,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("SubjectDoctorList"); + b.Navigation("SubjectPatientList"); + b.Navigation("SubjectVisitList"); b.Navigation("SubjectVisitTaskList"); @@ -17892,6 +18414,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations b.Navigation("ReadingClinicalDataList"); + b.Navigation("SCPStudySubjectVisitList"); + b.Navigation("StudyList"); b.Navigation("SubjectCriteriaEvaluationVisitFilterList");